Skip to content

Commit 9e34a8f

Browse files
authored
Update FileRules.php
1 parent 8e1e695 commit 9e34a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Validation/FileRules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(?RequestInterface $request = null)
4040
$request = Services::request();
4141
}
4242

43-
assert($request instanceof CLIRequest ?? IncomingRequest)
43+
assert($request instanceof IncomingRequest || $request instanceof CLIRequest);
4444

4545
$this->request = $request;
4646
}

0 commit comments

Comments
 (0)