Skip to content

Commit bf8cbbd

Browse files
Convert to yoda condition
1 parent b287c25 commit bf8cbbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Input/InputOption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function __construct(string $name, $shortcut = null, int $mode = null, st
8181
$shortcuts = array_filter($shortcuts, 'strlen');
8282
$shortcut = implode('|', $shortcuts);
8383

84-
if ($shortcut === '') {
84+
if ('' === $shortcut) {
8585
throw new InvalidArgumentException('An option shortcut cannot be empty.');
8686
}
8787
}

0 commit comments

Comments
 (0)