Skip to content

Commit

Permalink
Fix psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Jun 24, 2024
1 parent 7ce45b0 commit c62bd30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Command/Serve.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
[
"Port {$port} is taken by the processes:",
...array_map(
fn ($pid) => sprintf(
/** @psalm-suppress ForbiddenCode, PossiblyNullArgument */
fn (string $pid) => sprintf(
'#%s: %s',
$pid,
/** @psalm-suppress ForbiddenCode */
shell_exec("ps -o command= -p {$pid}"),
),
$runningCommandPIDs,
Expand All @@ -174,7 +174,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$out = array_filter(
array_map(
/** @psalm-suppress ForbiddenCode */
fn ($pid) => shell_exec("kill -9 {$pid}"),
fn (string $pid) => shell_exec("kill -9 {$pid}"),
$runningCommandPIDs,
)
);
Expand Down

0 comments on commit c62bd30

Please sign in to comment.