Skip to content

Commit

Permalink
Merge pull request php-school#265 from php-school/php8.2
Browse files Browse the repository at this point in the history
Remove dead code
  • Loading branch information
AydinHassan authored Dec 10, 2022
2 parents f9704b7 + 3d3568a commit 8472f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder/CliMenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private function extractShortcut(string $title) : ?string
throw InvalidShortcutException::fromShortcut($match[1]);
}

return isset($match[1]) ? strtolower($match[1]) : null;
return strtolower($match[1]);
}

private function processItemShortcut(MenuItemInterface $item) : void
Expand Down

0 comments on commit 8472f6d

Please sign in to comment.