BackoffPropertyToBackoffAttributeRector

Changes the backoff property to use the Backoff attribute

 use Illuminate\Contracts\Queue\ShouldQueue;
+use Illuminate\Queue\Attributes\Backoff;

+#[Backoff(3)]
 final class ProcessPodcast implements ShouldQueue
 {
-    public $backoff = 3;
 }

Configure your rector.php:

<?php

use RectorLaravel\Rector\Class_\BackoffPropertyToBackoffAttributeRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        BackoffPropertyToBackoffAttributeRector::class,
    ]);