Skip to content

Commit

Permalink
Update AlwaysThrowsOnErrors.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammyjo20 authored Jan 30, 2022
1 parent 1ee28c3 commit c52235d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/Features/AlwaysThrowsOnErrors.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ trait AlwaysThrowsOnErrors
*/
public function bootAlwaysThrowsOnErrorsFeature()
{
if ($this->traitExistsOnConnector(AlwaysThrowsOnErrors::class)) {
if ($this instanceof SaloonRequest && $this->traitExistsOnConnector(AlwaysThrowsOnErrors::class)) {
return;
}

Expand Down

0 comments on commit c52235d

Please sign in to comment.