class Child{
public $name;
public static $nums=0;
function __construsct($name){
$this->name=$name;
}
public function jion_game(){
Child::$nums+=1;
echo $this->name."加入游戏";
}
}
$Child1=new Child("asd");
//$Child1->name="asf";
$Child1->jion_game();
提示:Method call uses 1 parameters, but method signature uses 0 parameters 更少... (Ctrl+F1)
Inspection info:
Detects if function/method call uses more parameters than the declaration.
看不太懂是什么问题。求大佬解答