Conditions | 1 |
Paths | 1 |
Total Lines | 34 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
37 | public function execute(InputInterface $input, OutputInterface $output): int |
||
38 | { |
||
39 | $tools_path = Cast::toString($this->config->get('paths.tools')); |
||
40 | |||
41 | $flamegraph = "{$tools_path}/flamegraph/flamegraph.pl"; |
||
42 | $stackcollapse = "{$tools_path}/stackcollapse-phpspy/stackcollapse-phpspy.pl"; |
||
43 | |||
44 | $stackcollapse_process = proc_open( |
||
45 | [ |
||
46 | $stackcollapse, |
||
47 | ], |
||
48 | [ |
||
49 | 0 => STDIN, |
||
50 | 1 => ['pipe', 'w'], |
||
51 | 2 => STDERR, |
||
52 | ], |
||
53 | $stackcollapse_pipes |
||
54 | ); |
||
55 | $flamegraph_process = proc_open( |
||
56 | [ |
||
57 | $flamegraph, |
||
58 | ], |
||
59 | [ |
||
60 | 0 => $stackcollapse_pipes[1], |
||
61 | 1 => STDOUT, |
||
62 | 2 => STDERR, |
||
63 | ], |
||
64 | $stackcollapse_pipes |
||
65 | ); |
||
66 | |||
67 | proc_close($stackcollapse_process); |
||
68 | proc_close($flamegraph_process); |
||
69 | |||
70 | return 0; |
||
71 | } |
||
73 |
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