bool(true)
bool(true)
bool(false)
Fatal error: Uncaught TypeError: testTrait(): Argument #1 ($container) must be of type SomeSerializableTrait, SomeOtherContainer given, called in /in/Q2Y6j on line 26 and defined in /in/Q2Y6j:23
Stack trace:
#0 /in/Q2Y6j(26): testTrait(Object(SomeOtherContainer))
#1 {main}
thrown in /in/Q2Y6j on line 23
Process exited with code 255.
bool(true)
bool(true)
bool(false)
Fatal error: Uncaught TypeError: Argument 1 passed to testTrait() must be an instance of SomeSerializableTrait, instance of SomeOtherContainer given, called in /in/Q2Y6j on line 26 and defined in /in/Q2Y6j:23
Stack trace:
#0 /in/Q2Y6j(26): testTrait(Object(SomeOtherContainer))
#1 {main}
thrown in /in/Q2Y6j on line 23
Process exited with code 255.
bool(true)
bool(true)
bool(false)
Catchable fatal error: Argument 1 passed to testTrait() must be an instance of SomeSerializableTrait, instance of SomeOtherContainer given, called in /in/Q2Y6j on line 26 and defined in /in/Q2Y6j on line 23
Process exited with code 255.