| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 11 | public static function threwException( |
||
| 12 | string $serviceName, |
||
| 13 | Throwable $exception |
||
| 14 | ): InvalidServiceDefinition { |
||
| 15 | return new static(sprintf( |
||
| 16 | 'Service `%s` was configured incorrectly and could not be created: %s', |
||
| 17 | $serviceName, |
||
| 18 | $exception->getMessage() |
||
| 19 | ), 0, $exception); |
||
| 20 | } |
||
| 22 |