Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public static function getInvalidArgumentExceptionRegex(int $argument, string $type, $value = null) |
||
31 | { |
||
32 | return \sprintf( |
||
33 | '/Argument #%d%sof %s::%s\(\) must be a %s/', |
||
34 | $argument, |
||
35 | is_null($value) ? '.*' : ' \(' . \gettype($value) . '#' . $value . '\)', |
||
36 | '.*', |
||
37 | '.*', |
||
38 | $type |
||
39 | ); |
||
42 |