mirror of
https://github.com/danog/psalm.git
synced 2024-12-05 21:19:03 +01:00
ea52b9d23a
While I was searching for some code, ran across these.
18 lines
244 B
Markdown
18 lines
244 B
Markdown
# UndefinedMagicMethod
|
|
|
|
Emitted when calling a magic method that does not exist
|
|
|
|
```php
|
|
<?php
|
|
|
|
/**
|
|
* @method bar():string
|
|
*/
|
|
class A {
|
|
public function __call(string $name, array $args) {
|
|
return "cool";
|
|
}
|
|
}
|
|
(new A)->foo();
|
|
```
|