mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
19 lines
287 B
Markdown
19 lines
287 B
Markdown
# UndefinedMagicPropertyFetch
|
||
|
||
Emitted when getting a property on an object that doesn’t 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;
|
||
```
|