From 0e7ef1a7932778a3960301a480f332a626192f28 Mon Sep 17 00:00:00 2001 From: Lloric Mayuga Garcia Date: Mon, 30 Mar 2026 15:27:17 +0800 Subject: [PATCH 1/3] Fix MassAssignmentException Fix exception throw ``` Add fillable property [status] to allow mass assignment on [Saloon\Barstool\Models\Barstool]. ``` --- src/Barstool.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Barstool.php b/src/Barstool.php index a9560f3..9ed394c 100755 --- a/src/Barstool.php +++ b/src/Barstool.php @@ -94,7 +94,6 @@ private static function getResponseData(Response $response): array return [ 'url' => $response->getPsrRequest()->getUri(), - 'status' => $response->failed() ? 'failed' : 'successful', 'response_headers' => $response->headers()->all(), 'response_body' => $responseBody, 'response_status' => $response->status(), From 1a31782b1f15aadd7fd5e5a06d6d3e0adb53d77a Mon Sep 17 00:00:00 2001 From: Lloric Mayuga Garcia Date: Mon, 30 Mar 2026 15:45:52 +0800 Subject: [PATCH 2/3] Remove 'status' key from fatal data array --- src/Barstool.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Barstool.php b/src/Barstool.php index 9ed394c..88d8e0d 100755 --- a/src/Barstool.php +++ b/src/Barstool.php @@ -116,7 +116,6 @@ private static function getFatalData(FatalRequestException $exception): array { return [ 'url' => $exception->getPendingRequest()->getUri(), - 'status' => 'fatal', 'response_headers' => null, 'response_body' => null, 'response_status' => null, From 809a0017d842ecf212219c7ca4e8c6aca74d0a56 Mon Sep 17 00:00:00 2001 From: Lloric Mayuga Garcia Date: Mon, 30 Mar 2026 15:48:03 +0800 Subject: [PATCH 3/3] Refine return type annotations in Barstool.php Removed status options from return type annotations. --- src/Barstool.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Barstool.php b/src/Barstool.php index 88d8e0d..d55d7d1 100755 --- a/src/Barstool.php +++ b/src/Barstool.php @@ -81,7 +81,6 @@ private static function getRequestData(PendingRequest $request): array /** * @return array{ * url: UriInterface, - * status: 'failed'|'successful', * response_headers: array, * response_body: string, * response_status: int, @@ -104,7 +103,6 @@ private static function getResponseData(Response $response): array /** * @return array{ * url: UriInterface, - * status: 'fatal', * response_headers: null, * response_body: null, * response_status: null,