Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function run(): Generator |
||
32 | { |
||
33 | /** @var int $pid */ |
||
34 | $pid = yield $this->channel->receive(); |
||
35 | $process = proc_open( |
||
36 | [ |
||
37 | PHP_BINARY, |
||
38 | __DIR__ . '/../../../../../php-profiler', |
||
39 | 'inspector:trace', |
||
40 | '-p', |
||
41 | $pid |
||
42 | ], |
||
43 | [ |
||
44 | 0 => ['pipe', 'r'], |
||
45 | 1 => ['pipe', 'w'], |
||
46 | 2 => ['pipe', 'w'], |
||
47 | ], |
||
48 | $pipes |
||
49 | ); |
||
50 | stream_set_blocking($pipes[1], false); |
||
51 | for ($status = proc_get_status($process); $status['running']; $status = proc_get_status($process)) { |
||
52 | yield $this->channel->send(stream_get_contents($pipes[1])); |
||
53 | } |
||
56 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths