Fatal error: Uncaught TypeError: preg_replace_callback(): Argument #2 ($callback) must be a valid callback, cannot access "parent" when current class scope has no parent in /in/JmbMg:10
Stack trace:
#0 /in/JmbMg(10): preg_replace_callback('~\\w+~', 'parent::replace', 'hello world.')
#1 /in/JmbMg(2): Module::work('hello world.')
#2 {main}
thrown in /in/JmbMg on line 10
Process exited with code 255.
Warning: preg_replace_callback(): Requires argument 2, 'parent::replace', to be a valid callback in /in/JmbMg on line 10
hello world.
Warning: preg_replace_callback(): Requires argument 2, 'parent::replace', to be a valid callback in /in/JmbMg on line 10
hello world.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Warning: preg_replace_callback(): requires argument 2, 'parent::replace', to be a valid callback in /in/JmbMg on line 10
hello world.
Warning: preg_replace_callback(): requires argument 2, 'parent::replace', to be a valid callback in /in/JmbMg on line 10
hello world.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CLASS in /in/JmbMg on line 5
Process exited with code 255.