<?php echo "\nReproduction\n"; class Legacy {} $a = new Legacy; $a->foo = 'bar'; echo "\nTest with Attribute\n"; #[\AllowDynamicProperties] class TestWithAttribute {} class TestChildOne extends TestWithAttribute {} $testWithAttribute = new TestWithAttribute(); $testWithAttribute->foo = 'bar'; echo "\nTest with Attribute (child class)\n"; $testChildOne = new TestChildOne(); $testChildOne->foo = 'bar'; echo "\nTest extending stdClass\n"; class TestWithStdClass extends stdClass {} class TestChildTwo extends TestWithStdClass {} $testWithAttribute = new TestWithStdClass(); $testWithAttribute->foo = 'bar'; echo "\nTest extending stdClass (child class)\n"; $testChildOne = new TestChildTwo(); $testChildOne->foo = 'bar';
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`