Changes the failOnTimeout property to use the FailOnTimeout attribute
use Illuminate\Contracts\Queue\ShouldQueue;
+use Illuminate\Queue\Attributes\FailOnTimeout;
+#[FailOnTimeout(true)]
final class ProcessPodcast implements ShouldQueue
{
- public $failOnTimeout = true;
}
Configure your rector.php:
<?php
use RectorLaravel\Rector\Class_\FailOnTimeoutPropertyToFailOnTimeoutAttributeRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
FailOnTimeoutPropertyToFailOnTimeoutAttributeRector::class,
]);