Removing dependency on symfony/polyfill, is no longer required now th… #468
+1
−119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…at we dropped support for PHP 7.4
Fixes #467
As explained in the issue, the symfony/polyfill dependency got added in 2ea3c39 for the use of the php function
str_starts_with
which was added in PHP 8.0, at that time, the coding-standards repository still supported PHP 7.4, so it made sense at the time to add a polyfill.However, since 8d37ab7 support for PHP 7.4 was dropped. So this polyfill package is no longer needed.
I'd say, merge this and tag a new version 33 of coding-standards, so people using Magento aren't being forced to install the entire
symfony/polyfill
package which comes with a whole lot of extra code that's not needed, maybe it will even cause a slight performance impact if all that code gets potentially loaded inside a Magento application.