| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public static function createFor(\ReflectionProperty $property, \Throwable $e): static |
||
| 10 | { |
||
| 11 | return new static( |
||
| 12 | sprintf( |
||
| 13 | 'Some of arguments has a wrong type on `%s.%s.`. Error: `%s`', |
||
| 14 | $property->getDeclaringClass()->getName(), |
||
| 15 | $property->getName(), |
||
| 16 | $e->getMessage() |
||
| 17 | ), |
||
| 18 | $e->getCode(), |
||
| 19 | $e |
||
| 20 | ); |
||
| 23 |