Run Rector on your code to see what it can do for you:
public function sayHello(string $command): void { $existingTags = shell_exec($command); - if (!$existingTags) { + if ($existingTags === '' || $existingTags === '0' || $existingTags === false || $existingTags === null) { } } }
Applied Rules:
Not a change you expect?
rector.php