Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 307 Bytes

UndefinedMagicPropertyAssignment.md

File metadata and controls

17 lines (14 loc) · 307 Bytes

UndefinedMagicPropertyAssignment

Emitted when assigning a property on an object that does not 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";