Repository navigation
[DX] Enable polyfill rules on withPhpSets() config - #5981
Conversation
| StrEndsWithRector::class, | ||
| StrContainsRector::class, | ||
| ]); | ||
| }; |
There was a problem hiding this comment.
If anyone notices this set should be more complete, let us know 😉
| // make use of polyfill packages in composer.json | ||
| $this->sets[] = SetList::PHP_POLYFILLS; |
There was a problem hiding this comment.
I think this should be enabled manually via passed config, for example, we use withPhpSets(php53: true), it doesn't make sense to have str_starts_with() change? That will make too much change when it on step by step migration.
I think user needs to enable it by, eg: withPhpSets(php53: true, polyfill: true)
wdyt?
There was a problem hiding this comment.
I think add new method: withPhpPolyfill() can be the way to go
There was a problem hiding this comment.
Makes sense, thanks 👍
|
This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work. |
Polyfill rules are now enabled, once withPhpSets() is in the place. To pick up used packages in
composer.json👍Follow up to #5388