Use today() instead of now()->startOfDay()
-$now = now()->startOfDay();
+$now = today();
Configure your rector.php
:
<?php
use RectorLaravel\Rector\FuncCall\NowFuncWithStartOfDayMethodCallToTodayFuncRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
NowFuncWithStartOfDayMethodCallToTodayFuncRector::class,
]);