Hallo allerseits,
Kann mir einer erklaeren, warum ich diesen Fehler bekomme?
Catchable fatal error: Argument 1 passed to DoSomething() must be an instance of string, string given,
called in /var/www/phpl/test.php on line 12 and defined in /var/www/phpl/test.php on line 13
Der Code:
DoSomething("string");
function DoSomething(string $str)
{
echo $str;
}
string != string ??
Mit freundlichen Gruessen,
Sympathizer
--
"Was ist ist, was nicht ist ist moeglich"
"Was ist ist, was nicht ist ist moeglich"