DEVSENSE / phptools-docs

PHP Tools public content
Apache License 2.0
75 stars 9 forks source link

Undefined property #586

Closed thanhtran468 closed 3 days ago

thanhtran468 commented 4 days ago

Class inheriting from ArrayObject/ArrayAccess should not have this warning:

class A extends ArrayObject {}
$a = new A();
$a->name = 'Thanh';
$a->name; // Undefined property

// Works as expected
$a = new ArrayObject();
$a->name = 'Thanh';
$a->name;
thanhtran468 commented 3 days ago

A few other cases: Class inherits from stdClass, #[\AllowDynamicProperties], ...

jakubmisek commented 3 days ago

thank you, fixed and preparing updated pre-release