PHP報錯 count(): Parameter must be an array or an object that implements Countable

近期重裝開發機器環境,運行項目發現報錯

count(): Parameter must be an array or an object that implements Countable

查詢官方手冊發現7.2版本的php有更新,count傳入非數組的變量會出現warning:

升級php版本時需注意。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章