Closed bkosborne closed 8 years ago
Also interesting is that it was 2.6 that actually deprecated the SecurityContext service, but they didn't add the warning code until 2.7.
2.7 is not released yet, but since this projects composer.json has "minimum-stability": "dev"
it will pick up on 2.7-dev.
Merged - thanks!
The deprecation warning in the Symfony security component is causing unit tests to fail.
I don't know the proper way to handle this. You cannot "fix" the problem by not using the SecurityContextInterface, because you then break compatibility with older Symfony versions.
You also cannot tell phpunit to NOT convert these to errors. If you look here, you can see that we'd have to turn off
convertErrorsToExceptions
completely to fix this problem. You can't just have phpunit ignore deprecation errors w/o also ignoring all the other errors.Do you have any idea on how best to resolve this?