Skip to content

Commit

Permalink
fix psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Feb 13, 2025
1 parent faaa80b commit 2404cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Test/BaseMakefileTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private static function safeShellExec(string $command): string
{
$result = shell_exec($command);

if (null === $result) {
if (null === $result || false === $result) {

Check warning on line 225 in src/Test/BaseMakefileTestCase.php

View workflow job for this annotation

GitHub Actions / Infection with PHP 8.4

Escaped Mutant for Mutator "FalseValue": @@ @@ private static function safeShellExec(string $command): string { $result = shell_exec($command); - if (null === $result || false === $result) { + if (null === $result || true === $result) { throw new RuntimeException(sprintf('Could not execute the command "%s".', $command)); } return $result; } }
throw new RuntimeException(
sprintf(
'Could not execute the command "%s".',
Expand Down

0 comments on commit 2404cca

Please sign in to comment.