F
Filament2mo ago
keiron

The v4 upgrade script has rewritten FQCN definitions in classes that have nothing todo with Filament

Why has it done this? Is it expected? namespace App\Providers; +use Illuminate\Http\Client\ConnectionException; +use Log; use Illuminate\Support\Facades\Http; class GetData @@ -90,8 +92,8 @@ private function sendRequest(): void $this->response = $response->json(); } - catch (\Illuminate\Http\Client\ConnectionException $e) { - \Log::error($e->getMessage().'. Called: '.$url); + catch (ConnectionException $e) { + Log::error($e->getMessage().'. Called: '.$url); $this->response = false; }
Solution:
Rector is doing this. The upgrade script should have asked for directories you want to run the script against allowing you to run it against specific filament directories.
Jump to solution
2 Replies
Solution
awcodes
awcodes2mo ago
Rector is doing this. The upgrade script should have asked for directories you want to run the script against allowing you to run it against specific filament directories.
keiron
keironOP2mo ago
Ok thanks

Did you find this page helpful?