Remove “Remaining deprecation notices” in Symfony 2.8

后端 未结 3 932
情深已故
情深已故 2021-01-31 01:30

I\'m new on Symfony and PHPUnit.

I would like to run some tests, there are a lot of deprecation notices. But it does not matter because I\'ll stay on Symfony 2.8 for no

相关标签:
3条回答
  • 2021-01-31 02:12

    You can run in terminal

    export SYMFONY_DEPRECATIONS_HELPER=weak
    

    Before executing your script. It will disable deprecation notices

    0 讨论(0)
  • 2021-01-31 02:17

    Finally found the solution !

    Just add

    <php>
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" />
    </php>
    

    to your phpunit.xml (or any other file that you use to configure phpunit)

    0 讨论(0)
  • 2021-01-31 02:35

    This is a known issue of the AsseticBundle which isn't part of the official Symfony distribution anymore and not ready for 3.0 yet (having some deprecations in the current tagged version - which you can see in your error message).

    So please follow and wait for this issue to be solved and update your AsseticBundle when it's ready (or go with the current master of it what I wouldn't recommend to do.

    A lot of people trying to upgrade to Symfony 2.8/3.0 have this issue currently.

    Link to the Issue on Github

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