object(test\MyClass)#1 (1) {
["modifier":protected]=>
object(Closure)#2 (1) {
["function"]=>
string(25) "test\SomeOtherClass::func"
}
}
Fatal error: Uncaught TypeError: test\MyClass::__construct(): Argument #1 ($modifier) must be of type callable, array given, called in /in/pnWYC on line 28 and defined in /in/pnWYC:10
Stack trace:
#0 /in/pnWYC(28): test\MyClass->__construct(Array)
#1 {main}
thrown in /in/pnWYC on line 10
Process exited with code 255.
Output for 8.1.0 - 8.1.34
object(test\MyClass)#1 (1) {
["modifier":protected]=>
object(Closure)#2 (0) {
}
}
Fatal error: Uncaught TypeError: test\MyClass::__construct(): Argument #1 ($modifier) must be of type callable, array given, called in /in/pnWYC on line 28 and defined in /in/pnWYC:10
Stack trace:
#0 /in/pnWYC(28): test\MyClass->__construct(Array)
#1 {main}
thrown in /in/pnWYC on line 10
Process exited with code 255.