driftingly / rector-laravel

Rector upgrades rules for Laravel
http://getrector.org
MIT License
540 stars 52 forks source link

v1.2.1 wrongfully rewrite `flush` function on classes that implements `Illuminate\Queue\Failed\FailedJobProviderInterface` #239

Closed cosminardeleanu closed 1 month ago

cosminardeleanu commented 2 months ago

With the new version 1.2.1, my custom implementation of Illuminate\Queue\Failed\FailedJobProviderInterface is automatically rewritten:

-public function flush($hours = null): void
+public function flush($hours): void

Expectation is to be left untouched.