Fatal error: Cannot use "parent" when current class scope has no parent in /in/Cs6fN on line 12
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Cannot use "parent" when current class scope has no parent in /in/Cs6fN on line 12
StaticB
Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no parent in /in/Cs6fN:12
Stack trace:
#0 /in/Cs6fN(8): StaticA->classInfo()
#1 /in/Cs6fN(24): StaticA->dosomething()
#2 /in/Cs6fN(30): StaticB->doit()
#3 {main}
thrown in /in/Cs6fN on line 12
Process exited with code 255.
StaticB
Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no parent in /in/Cs6fN:12
Stack trace:
#0 /in/Cs6fN(8): StaticA->classInfo()
#1 /in/Cs6fN(24): StaticA->dosomething()
#2 /in/Cs6fN(30): StaticB->doit()
#3 {main}
thrown in /in/Cs6fN on line 12
Process exited with code 255.