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.
19 lines
286 B
Markdown
19 lines
286 B
Markdown
# UndefinedMagicPropertyFetch
|
|
|
|
Emitted when getting a property on an object that does not have that magic property defined
|
|
|
|
```php
|
|
<?php
|
|
|
|
/**
|
|
* @property string $bar
|
|
*/
|
|
class A {
|
|
public function __get(string $name) {
|
|
return "cool";
|
|
}
|
|
}
|
|
$a = new A();
|
|
echo $a->foo;
|
|
```
|