Re: [PHP-DEV] Traits and redeclaring static properties

2023-03-31 Thread Larry Garfield
On Fri, Mar 31, 2023, at 1:07 PM, Ilija Tovilo wrote: > Hi everyone > > A few days ago we received a bug report about an inconsistency with > traits and static properties. > > https://github.com/php/php-src/issues/10935 > > https://3v4l.org/Dll1m > ``` > class A { > static $test; > } > class B

[PHP-DEV] Traits and redeclaring static properties

2023-03-31 Thread Ilija Tovilo
Hi everyone A few days ago we received a bug report about an inconsistency with traits and static properties. https://github.com/php/php-src/issues/10935 https://3v4l.org/Dll1m ``` class A { static $test; } class B extends A { static $test; } A::$test = 'A'; B::$test = 'B'; var_dump(A::$