Skip to content

Commit

Permalink
πŸ› Use status function instead of getStatusCode
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonJnsson committed Jan 18, 2024
1 parent 28b144c commit bed679e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelEconomicServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function packageBooted()
fn (Response $response) => $logger->onResponse($response)
)
->throwIf(function (\Illuminate\Http\Client\Response $response) {
return $response->getStatusCode() !== 404;
return $response->status() !== 404;
});
});

Expand Down

0 comments on commit bed679e

Please sign in to comment.