mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
308 B
308 B
UndefinedMagicPropertyAssignment
Emitted when assigning a property on an object that doesn’t have that magic property defined
<?php
/**
* @property string $bar
*/
class A {
/** @param mixed $value */
public function __set(string $name, $value) {}
}
$a = new A();
$a->foo = "bar";