Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public static function shouldListFileDescriptors(): bool |
||
17 | { |
||
18 | static $should = null; |
||
19 | if ($should !== null) { |
||
20 | return $should; |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @psalm-suppress PossiblyNullReference |
||
25 | */ |
||
26 | $arguments = (new ReflectionClass(Process::class))->getConstructor()->getParameters(); /** @phpstan-ignore-line */ |
||
27 | if (! isset($arguments[self::EXPECTED_INDEX])) { /** @phpstan-ignore-line */ |
||
28 | return $should = FALSE_; |
||
29 | } |
||
30 | |||
31 | return $should = ($arguments[self::EXPECTED_INDEX]->getName() === 'fds'); |
||
32 | } |
||
34 |