Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bf8cbbd

Browse filesBrowse files
Convert to yoda condition
1 parent b287c25 commit bf8cbbd
Copy full SHA for bf8cbbd

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Input/InputOption.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.