Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | protected function invalidFactoryException(string $serviceId, $found): RuntimeException |
||
27 | { |
||
28 | $interface = ServiceFactoryInterface::class; |
||
29 | $found = gettype($found); |
||
30 | |||
31 | return new UnexpectedValueException( |
||
32 | "Value of \"factory\" for service \"{$serviceId}\" must implement \"{$interface}\"; {$found} found." |
||
33 | ); |
||
36 |