Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 286 Bytes

UndefinedMagicPropertyFetch.md

File metadata and controls

18 lines (15 loc) · 286 Bytes

UndefinedMagicPropertyFetch

Emitted when getting a property on an object that does not have that magic property defined

<?php

/**
 * @property string $bar
 */
class A {
    public function __get(string $name) {
        return "cool";
    }
}
$a = new A();
echo $a->foo;