Fix phpstan variable visibility (with package update for Symfony 8)#190
Fix phpstan variable visibility (with package update for Symfony 8)#190victormacko wants to merge 5 commits intonorkunas:masterfrom
Conversation
… were already marked as final)
|
@norkunas This is the PR i've no idea on how to fix up ... do you have any suggestions so I can sort it? |
|
@victormacko based on:
i guess we need to bump dependencies to non-vulnerable versions |
|
@norkunas i've tried adding a conflict to avoid composer installing it, but it's still failing here... Are you able to assist? ... i've always been under the impression that it's better to have developers manage CVS's themselves - ie. by installing roave/security-advisories / some other security checker, so this is all new to me to manage it within packages like this. |
Well it's a composer feature now :) For the future - we should add to the composer options in CI this flag: But still, I think we should bump at least to non-vulnerable dependencies. symfony/http-client -> as for the symfony/options-resolver, it's not vulnerable, so ^8.0 can be added and that's all. And then there is phpunit-bridge ... you can see I already tried #183 |
|
@norkunas ok thanks, i've added that into composer (the versions). I've no idea how the CI side of things works to add that flag in, or change which phpunit is used -- is that something set within the code, or elsewhere in GitHub? it's just editing the workflow in ./github/workflows |
|
@norkunas Has that ever worked in the past? |
of course it was :) you can see https://github.com/geocoder-php/BazingaGeocoderBundle/ for inspiration, where compatibility is made with many symfony versions. but i think it's time to retire 5.4 here. it simplifies maintenance a lot, and then of course php would need to be bumped up to 8.1 |
This PR is in addition to #189 to address PHPStan's issue with the variable visibility in a few of the classes which are marked as 'final' - it shouldn't have any effect.
I've done a basic test (sending a notification) which worked without issue.