Skip to content

Commit c62bd30

Browse files
committed
Fix psalm
1 parent 7ce45b0 commit c62bd30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Command/Serve.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
153153
[
154154
"Port {$port} is taken by the processes:",
155155
...array_map(
156-
fn ($pid) => sprintf(
156+
/** @psalm-suppress ForbiddenCode, PossiblyNullArgument */
157+
fn (string $pid) => sprintf(
157158
'#%s: %s',
158159
$pid,
159-
/** @psalm-suppress ForbiddenCode */
160160
shell_exec("ps -o command= -p {$pid}"),
161161
),
162162
$runningCommandPIDs,
@@ -174,7 +174,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
174174
$out = array_filter(
175175
array_map(
176176
/** @psalm-suppress ForbiddenCode */
177-
fn ($pid) => shell_exec("kill -9 {$pid}"),
177+
fn (string $pid) => shell_exec("kill -9 {$pid}"),
178178
$runningCommandPIDs,
179179
)
180180
);

0 commit comments

Comments
 (0)