| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 35 | public static function getStringReflectionNamedType(): \ReflectionNamedType |
||
| 36 | { |
||
| 37 | if (null === static::$rnts) { |
||
|
|
|||
| 38 | $func = new \ReflectionFunction(static fn(string $param): string => $param); |
||
| 39 | static::$rnts = ($func->getParameters()[0])->getType(); |
||
| 40 | } |
||
| 41 | |||
| 42 | return static::$rnts; |
||
| 43 | } |
||
| 60 |