2017-05-18 30 views
0

我使用PHP 5.6,然后我的代码工作正常,但是当我使用php7.0 +则相同的代码表明PHP 7.0显示函数声明中笨

A PHP Error was encountered 

Severity: Warning 

Message: Declaration of MX_Lang::load($langfile, $lang = '', $return = false, $add_suffix = true, $alt_path = '', $_module = '') should be compatible with CI_Lang::load($langfile = '', $idiom = '', $return = false, $add_suffix = true, $alt_path = '') 

Filename: MX/Lang.php 
+0

什么是行号,你在哪里得到错误? –

+1

你可以在这里找到答案.http://stackoverflow.com/questions/43840941/codeigniter-hmvc-error-after-updating-php-to-php-7 –

回答

0

执行以下更改

third_party\MX\Lang.php 
line=70 
public function load($langfile ='', $lang = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '', $_module = '') 

希望它能解决您的问题。