| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function supports($value): bool |
||
| 20 | { |
||
| 21 | if (!$value instanceof Closure) { |
||
| 22 | return false; |
||
| 23 | } |
||
| 24 | $reflection = new ReflectionClosure($value); |
||
| 25 | |||
| 26 | $closureReflection = $reflection->getClosureScopeClass(); |
||
| 27 | $closureClassOwnerName = $closureReflection->getName(); |
||
| 28 | |||
| 29 | return is_a($closureClassOwnerName, Env::class, true); |
||
| 30 | } |
||
| 49 |