Skip to content

Commit cf646b8

Browse files
authored
Merge pull request #1088 from kenjis/fix-CheckQueryReturnTrait-validation-error-CI45
fix: Call to a member function getErrors() on null in CheckQueryReturnTrait
2 parents af7ddd6 + 35bbb77 commit cf646b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Models/CheckQueryReturnTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ protected function checkQueryReturn($return): void
4141

4242
protected function checkValidationError(): void
4343
{
44+
if ($this->validation === null) {
45+
return;
46+
}
47+
4448
$validationErrors = $this->validation->getErrors();
4549

4650
if ($validationErrors !== []) {

0 commit comments

Comments
 (0)