| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 18 | protected function createMessage(Exception $previous = null):string |
||
| 19 | { |
||
| 20 | // Adding the last dependency to the reflection path. |
||
| 21 | $this->referenceChain[] = $this->serviceId; |
||
| 22 | return sprintf( |
||
| 23 | 'Circular reference detected for "%s", path: "%s".', |
||
| 24 | $this->serviceId, |
||
| 25 | implode(' -> ', $this->referenceChain) |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 29 | } |