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:Jump to 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.
2 Replies