Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 9 | public static function forConfigOption(string $option, $valueGiven, ?string $description = null): self |
|
24 | { |
||
25 | 9 | $message = \sprintf('Invalid config option for "%s": %s', $option, self::getDebugValue($valueGiven)); |
|
26 | 9 | if ($description !== null) { |
|
27 | 3 | $message .= \sprintf(' (%s)', $description); |
|
28 | } |
||
29 | |||
30 | 9 | return new self($message); |
|
31 | } |
||
47 |