driftingly / rector-laravel

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

Using \Route fails silently with StaticCall\RouteActionCallableRector #179

Closed eigan closed 7 months ago

eigan commented 8 months ago

RouterRegisterNodeAnalyzer::isRegisterMethodStaticCall() expects $node->class to be Illuminate\Support\Facades\Route, but it can in fact be just Route (\Route).

This can be resolved by adding use Illuminate\Support\Facades\Route; in the routes file, but it's not obvious.