php Laravel- A non well formed numeric value encountered (on string)

前端 未结 2 1006
太阳男子
太阳男子 2021-02-04 06:41

I have two function in my controller and service. I want to call a function in service. Here is my code :

Controller:

public function f         


        
2条回答
  •  星月不相逢
    2021-02-04 07:14

    This is a bug in the symfony/var-dumper package when using PHP7.1. It was fixed in version 2.7.16, 2.8.9, 3.0.9 and 3.1.3. See the pull request: https://github.com/symfony/symfony/pull/19379

    In my case, I needed to composer update my laravel framework packages, as my vendor directory copy of that package was at 2.7.9. (I'm using Laravel 5.1; later versions use 2.8 and 3.0 of symfony, which also had the bug)

提交回复
热议问题