#RAKUSMeetup count()関数の仕様変更 PHP 7.2 以降の挙動 → カウントできない型を引数にすると Warning が発生 print( count(1) ); // 出力:1 print( count("hoge") ); // 出力:1 print( count(null) ); // 出力:0 Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d code php.log