Change minutes argument to seconds in Illuminate\Contracts\Cache\Store and Illuminate\Support\Facades\Cache
class SomeClass
{
public function run()
{
- Illuminate\Support\Facades\Cache::put('key', 'value', 60);
+ Illuminate\Support\Facades\Cache::put('key', 'value', 60 * 60);
}
}
Configure your rector.php
:
<?php
use RectorLaravel\Rector\StaticCall\MinutesToSecondsInCacheRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
MinutesToSecondsInCacheRector::class,
]);