Test: /Zend/tests/bug80037.phpt - Version 7.4.3        

Bug #80037 Typed property must not be accessed before initialization when __get() declared
Submitted: 2020-08-31 08:43:18 Modified: 2020-08-31 10:14:59
From: miloslav.hula Assigned: nikic
Status: Closed Package: *General Issues
PHP Version: 7.4.9 OS:

There is 1 diff reported by users for this test.

Count Diff
5 (100%)
001+ Fatal error: Uncaught Error: Typed property A::$a must not be accessed before initialization in %s/bug80037.php:11 002+ Stack trace: 003+ #0 %s/bug80037.php(22): A::fromArray(Array) 004+ #1 {main} 001- object(A)#1 (1) { 002- ["a"]=> 003- string(3) "foo" 004- } 005+ thrown in %s/bug80037.php on line 11