LoginSignup
1
1

More than 5 years have passed since last update.

FuelPHP を 1.7.2 から 1.7.3 にすると、Presenter から Missing argument 1 for Presenter_Welcome_Hello::{closure}(), called in ... というエラーが出る場合がある。

Posted at

原因は、この時の対応のようです。
https://github.com/fuel/core/commit/30643ab08bc07d9f8ae75ca8a337166aec5f117b

マニュアルによると、以下のように引数があるクロージャーが、プレゼンターに登録できると書かれています。
http://fuelphp.com/docs/general/presenters.html#/functions

1.7.2 までは、このコードは動くのですが、1.7.3 になると、Missing argument 1 for Presenter_Welcome_Hello::{closure}(), called in ... というエラーが出るようになります。引数がない場合は、問題なく動きます。

マニュアルと実装がズれているので、マニュアルだけを見て直せないので備忘として書いときます。
原因がなかなか分からず、解決にえらい時間がかかった。参った!

1
1
3

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
1
1