string(23) "Loading post with ID 42"
lazy ghost object(Post)#4 (1) {
["id"]=>
int(42)
["name"]=>
uninitialized(string)
["email"]=>
uninitialized(string)
}
string(10) "Hello 👋"
string(39) "Lazy initialization triggered for ID 42"
object(Post)#4 (3) {
["id"]=>
int(42)
["name"]=>
string(8) "John Doe"
["email"]=>
string(20) "john.doe@example.com"
}
Output for 8.2.23 - 8.2.30, 8.3.5 - 8.3.30
string(23) "Loading post with ID 42"
Fatal error: Uncaught Error: Call to undefined method ReflectionClass::newLazyGhost() in /in/XNRiS:28
Stack trace:
#0 /in/XNRiS(53): PostRepository->find(42)
#1 {main}
thrown in /in/XNRiS on line 28
Process exited with code 255.
Output for 8.1.30 - 8.1.34
Parse error: syntax error, unexpected token "readonly", expecting "abstract" or "final" or "class" in /in/XNRiS on line 3
Process exited with code 255.