Skip to content

Commit

Permalink
Default value param for backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Sep 23, 2022
1 parent b61b1ca commit f29638d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exec/ExecTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static function programExists($program)
return $process->isSuccessful();
}

public static function getEditor(?string $editor)
public static function getEditor(?string $editor = null)
{
// See http://drupal.org/node/1740294
return $editor ? "$editor %s" : '${VISUAL-${EDITOR-vi}} %s';
Expand Down

0 comments on commit f29638d

Please sign in to comment.