sizeof(): Parameter must be an array or an object that implements Countable
kaen98 opened this issue · 2 comments
kaen98 commented
- 本地homestead正常!
- 推送到 heroku上后, 访问后台 报错:
sizeof(): Parameter must be an array or an object that implements Countable
- heroku上PHP 版本: PHP 7.2.2
vagrant@homestead:~$ heroku run 'php -v' --app young-headland-13929
▸ heroku-cli: update available from 6.13.19 to 6.15.26-5726b6f
Running php -v on ⬢ young-headland-13929... up, run.8700 (Free)
PHP 7.2.2 (cli) (built: Feb 5 2018 02:24:30) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.2, Copyright (c) 1999-2018, by Zend Technologies
kingofzihua commented
搜索sizeof,然后替换成 is_array 试试
kaen98 commented
@kingofzihua 最终把heroku 上PHP 环境配成和本地一样 , PHP 7.1 正常