@@ -86,7 +86,7 @@ |
||
86 | 86 | '::', |
87 | 87 | array_filter( |
88 | 88 | $this->readFunctionName($pid, $php_version, $current_function), |
89 | - fn (string $item) => strlen($item) |
|
89 | + fn(string $item) => strlen($item) |
|
90 | 90 | ) |
91 | 91 | ); |
92 | 92 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | Loop::onReadable( |
117 | 117 | STDIN, |
118 | 118 | /** @param resource $stream */ |
119 | - function (string $watcher_id, $stream) { |
|
119 | + function(string $watcher_id, $stream) { |
|
120 | 120 | $key = fread($stream, 1); |
121 | 121 | if ($key === 'q') { |
122 | 122 | Loop::cancel($watcher_id); |
@@ -124,9 +124,9 @@ discard block |
||
124 | 124 | } |
125 | 125 | } |
126 | 126 | ); |
127 | - Loop::run(function () use ($dispatch_table, $searcher_context, $worker_pool, $output, $formatter) { |
|
127 | + Loop::run(function() use ($dispatch_table, $searcher_context, $worker_pool, $output, $formatter) { |
|
128 | 128 | $promises = []; |
129 | - $promises[] = call(function () use ($searcher_context, $dispatch_table) { |
|
129 | + $promises[] = call(function() use ($searcher_context, $dispatch_table) { |
|
130 | 130 | while (1) { |
131 | 131 | $update_target_message = yield $searcher_context->receivePidList(); |
132 | 132 | $dispatch_table->updateTargets($update_target_message->target_process_list); |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | }); |
135 | 135 | foreach ($worker_pool->getWorkers() as $reader) { |
136 | 136 | $promises[] = call( |
137 | - function () use ($reader, $dispatch_table, $output, $formatter) { |
|
137 | + function() use ($reader, $dispatch_table, $output, $formatter) { |
|
138 | 138 | while (1) { |
139 | 139 | $result = yield $reader->receiveTraceOrDetachWorker(); |
140 | 140 | if ($result instanceof TraceMessage) { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | return [ |
36 | 36 | MemoryReaderInterface::class => autowire(MemoryReader::class), |
37 | - ZendTypeReader::class => function () { |
|
37 | + ZendTypeReader::class => function() { |
|
38 | 38 | return new ZendTypeReader(ZendTypeReader::V74); |
39 | 39 | }, |
40 | 40 | SymbolResolverCreatorInterface::class => autowire(Elf64SymbolResolverCreator::class), |
@@ -46,6 +46,6 @@ discard block |
||
46 | 46 | ->constructorParameter('di_config_file', __DIR__ . '/di.php'), |
47 | 47 | PhpReaderTraceLoopInterface::class => autowire(PhpReaderTraceLoop::class), |
48 | 48 | ProcessSearcherInterface::class => autowire(ProcessSearcher::class), |
49 | - Config::class => fn () => Config::load(__DIR__ . '/config.php'), |
|
49 | + Config::class => fn() => Config::load(__DIR__ . '/config.php'), |
|
50 | 50 | TemplatePathResolverInterface::class => autowire(TemplatePathResolver::class), |
51 | 51 | ]; |
@@ -16,4 +16,4 @@ |
||
16 | 16 | |
17 | 17 | /** @var CallTrace $call_trace */ |
18 | 18 | |
19 | -echo CompatCallTraceFormatter::getInstance()->format($call_trace) , PHP_EOL; |
|
19 | +echo CompatCallTraceFormatter::getInstance()->format($call_trace), PHP_EOL; |