Skip to content

Commit

Permalink
Issue #5066 - PHP 8.1 null vs. \strlen() (#5067)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweetchuck committed Feb 9, 2022
1 parent dce2da2 commit 68a4394
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TestTraits/DrushTestTrait.php
Expand Up @@ -75,8 +75,8 @@ public function drush($command, array $args = [], array $options = [], $site_spe
$cmd[] = $this->convertKeyValueToFlag($key, $value);
}

$cmd[] = $suffix;
$exec = array_filter($cmd, 'strlen'); // Remove NULLs
$cmd[] = (string) $suffix;
$exec = array_filter($cmd, 'strlen'); // Removes empty strings.

$cmd = implode(' ', $exec);
$this->execute($cmd, $expected_return, $cd, $env);
Expand Down

0 comments on commit 68a4394

Please sign in to comment.