Skip to content

Commit 8472f6d

Browse files
authored
Merge pull request #265 from php-school/php8.2
Remove dead code
2 parents f9704b7 + 3d3568a commit 8472f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builder/CliMenuBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private function extractShortcut(string $title) : ?string
272272
throw InvalidShortcutException::fromShortcut($match[1]);
273273
}
274274

275-
return isset($match[1]) ? strtolower($match[1]) : null;
275+
return strtolower($match[1]);
276276
}
277277

278278
private function processItemShortcut(MenuItemInterface $item) : void

0 commit comments

Comments
 (0)