Closed thanhtran468 closed 3 days ago
Class inheriting from ArrayObject/ArrayAccess should not have this warning:
ArrayObject/ArrayAccess
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;
A few other cases: Class inherits from stdClass, #[\AllowDynamicProperties], ...
stdClass
#[\AllowDynamicProperties]
thank you, fixed and preparing updated pre-release
Class inheriting from
ArrayObject/ArrayAccess
should not have this warning: