| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public static function shouldListFileDescriptors() |
||
| 8 | { |
||
| 9 | static $should = null; |
||
| 10 | if ($should !== null) { |
||
| 11 | return $should; |
||
| 12 | } |
||
| 13 | |||
| 14 | $arguments = (new \ReflectionClass('React\ChildProcess\Process'))->getConstructor()->getParameters(); |
||
| 15 | if (!isset($arguments[3])) { |
||
| 16 | return $should = false; |
||
| 17 | } |
||
| 18 | |||
| 19 | return $should = ($arguments[3]->getName() === 'fds'); |
||
| 20 | } |
||
| 21 | } |
||
| 22 |