We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65a6e03 commit c8a1981Copy full SHA for c8a1981
src/Laravel/Filter/SupportsOperators.php
@@ -8,15 +8,9 @@ trait SupportsOperators
8
{
9
protected array $operators = self::SUPPORTED_OPERATORS;
10
11
- public function operators(array $only = null): static
+ public function operators(array $only): static
12
13
- $supported = static::SUPPORTED_OPERATORS;
14
-
15
- if ($only === null) {
16
- return $supported;
17
- }
18
19
- $invalid = array_diff($only, $supported);
+ $invalid = array_diff($only, static::SUPPORTED_OPERATORS);
20
21
if (!empty($invalid)) {
22
throw new InvalidArgumentException(
0 commit comments