Fatal error: Uncaught ArgumentCountError: Too few arguments to function fClass::__construct(), 0 passed in /in/q5BhH on line 14 and exactly 2 expected in /in/q5BhH:5
Stack trace:
#0 /in/q5BhH(14): fClass->__construct()
#1 /in/q5BhH(19): sClass->__construct(1, 2, 3)
#2 {main}
thrown in /in/q5BhH on line 5
Process exited with code 255.
Warning: Missing argument 1 for fClass::__construct(), called in /in/q5BhH on line 14 and defined in /in/q5BhH on line 5
Warning: Missing argument 2 for fClass::__construct(), called in /in/q5BhH on line 14 and defined in /in/q5BhH on line 5
Notice: Undefined variable: a in /in/q5BhH on line 6
Notice: Undefined variable: b in /in/q5BhH on line 7
Значения присвоеныsClass Object
(
[c] => 1
[a] =>
[b] =>
)
Output for 5.0.0 - 5.0.5
Warning: Missing argument 1 for fClass::__construct() in /in/q5BhH on line 5
Warning: Missing argument 2 for fClass::__construct() in /in/q5BhH on line 5
Значения присвоеныsClass Object
(
[c] => 1
[a] =>
[b] =>
)
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/q5BhH on line 3
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/q5BhH on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/q5BhH on line 3
Process exited with code 255.