On Mon, 11 Mar 2019 at 12:14, Rowan Collins <[email protected]> wrote:
>
> declare(strict_properties=0) {
> class Foo {}
> $foo = new Foo;
> $foo->bar = 42;
> }
> declare(strict_properties=1) {
> echo $foo; # Is $bar now 'defined', or do we only count the properties
> in the original class definition?
> }
>
Oops, that should read echo $foo->bar;
--
Rowan Collins
[IMSoP]
