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

前端 未结 2 996
太阳男子
太阳男子 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:02

    I had the same issue on Laravel 5.2 PHP 7.1. If you don't want to update the entire framework, you can do:

    composer update symfony/var-dumper
    

    as stated here.

    0 讨论(0)
  • 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)

    0 讨论(0)
提交回复
热议问题