Conditions | 4 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | protected function validateArguments(Node ...$arguments): void |
||
26 | { |
||
27 | $argumentCount = \count($arguments); |
||
28 | if ($argumentCount < 2 || $argumentCount > 5) { |
||
29 | throw InvalidArgumentForVariadicFunctionException::between('regexp_substr', 2, 5); |
||
30 | } |
||
31 | if ($argumentCount === 4) { |
||
32 | throw InvalidArgumentForVariadicFunctionException::unsupportedCombination('regexp_substr', 4, 'start and N parameter shall be used together'); |
||
33 | } |
||
36 |