Skip to content

Commit

Permalink
Merge pull request #1088 from kenjis/fix-CheckQueryReturnTrait-valida…
Browse files Browse the repository at this point in the history
…tion-error-CI45

fix: Call to a member function getErrors() on null in CheckQueryReturnTrait
  • Loading branch information
kenjis authored Apr 8, 2024
2 parents af7ddd6 + 35bbb77 commit cf646b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Models/CheckQueryReturnTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ protected function checkQueryReturn($return): void

protected function checkValidationError(): void
{
if ($this->validation === null) {
return;
}

$validationErrors = $this->validation->getErrors();

if ($validationErrors !== []) {
Expand Down

0 comments on commit cf646b8

Please sign in to comment.