Skip to content

Commit

Permalink
Update DrushTestTrait.php (#5076)
Browse files Browse the repository at this point in the history
If `$value` is optional, we need to allow null values.
  • Loading branch information
heddn committed Feb 16, 2022
1 parent 11facec commit 4011628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestTraits/DrushTestTrait.php
Expand Up @@ -90,7 +90,7 @@ public function drush($command, array $args = [], array $options = [], $site_spe
* @param string $value The option value (or empty)
* @return string
*/
protected function convertKeyValueToFlag(string $key, string $value)
protected function convertKeyValueToFlag(string $key, ?string $value)
{
if (!isset($value)) {
return "--$key";
Expand Down

0 comments on commit 4011628

Please sign in to comment.