Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit bdfcc8c

Browse files
author
Andrey Helldar
authored
Fixed Too few arguments to function Illuminate\Validation\ValidationException
1 parent 6417b7b commit bdfcc8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static function getCode($value, int $status_code = 400): int
4343
return $status_code;
4444
}
4545

46-
if (Instance::of($value, ValidationException::class)) {
46+
if ($value instanceof ValidationException) {
4747
return static::correctStatusCode(
4848
$value->status ?? Instance::call($value, 'getCode') ?: 0
4949
);

0 commit comments

Comments
 (0)