Fatal error: Uncaught ArgumentCountError: Too few arguments to function MyClass::__invokeStatic(), 0 passed in /in/ONn05 on line 22 and exactly 1 expected in /in/ONn05:9
Stack trace:
#0 /in/ONn05(22): MyClass::__invokeStatic()
#1 /in/ONn05(25): MyClass(Object(MyClass))
#2 {main}
thrown in /in/ONn05 on line 9
Process exited with code 255.
Warning: Missing argument 1 for MyClass::__invokeStatic(), called in /in/ONn05 on line 22 and defined in /in/ONn05 on line 9
Notice: Undefined variable: instance in /in/ONn05 on line 11
Notice: Trying to get property of non-object in /in/ONn05 on line 11