| Conditions | 5 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 63 | public function make(?callable $callback = null) |
||
| 64 | { |
||
| 65 | $mcb = function ($type, $buffer) use ($callback) { |
||
| 66 | if (! $this->locked && AppProcess::OUT === $type && $event = FSEventParser::toEvent($buffer)) { |
||
| 67 | $this->locked = true; |
||
| 68 | ($callback) ? $callback($event) : null; |
||
| 69 | $this->locked = false; |
||
| 70 | unset($event); |
||
| 71 | } |
||
| 72 | }; |
||
| 73 | |||
| 74 | return new SwooleProcess(function () use ($mcb) { |
||
| 75 | (new AppProcess($this->configure()))->setTimeout(0)->run($mcb); |
||
| 76 | }, false, false); |
||
| 77 | } |
||
| 97 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..