LoginSignup
24
20

More than 5 years have passed since last update.

FuelPHP1.8がPHP7.2で使えなかった

Last updated at Posted at 2018-02-02

自分用のメモです。
既出の場合は消しますが、見当たらなかったので。

エラー

Warning - get_class() expects parameter 1 to be object, null given in ***\fuel\core\classes\security.php on line 241

問題

fuelPHP1.8が、PHP7.2で変更された修正に対応されていないためにでる表示。
PHP7.1であれば、表示されないため、7.2以上使う場合は、注意が必要になる。

参照URL: https://qiita.com/rana_kualu/items/40ebed78742bfdbd1065#get_class-disallow-null-parameter

対策

オーバーライドで修正を行う場合は、補足を確認するとよいかもしれない。

補足

fuelphp develop/1.9 では、修正を行っている模様。
https://github.com/fuel/core/commit/8a44a112c7a9a7eee54f6990a9913daf96a230a1

(1.9も2もいつでるのか。)

24
20
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
20