Skip to content

Commit

Permalink
remove unneeded null check
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEleventeen committed Jul 23, 2021
1 parent d4aea5d commit 840e8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function resolvePath(array $replacements = []): string
$longestPossibleRoute = end($routeData);
$result = [];
foreach ($longestPossibleRoute as $routeSegment) {
if (is_string($routeSegment) && $routeSegment) {
if (is_string($routeSegment)) {
$result[] = $routeSegment;
} else if (is_array($routeSegment)) {
$wildcard = $routeSegment[0];
Expand Down

0 comments on commit 840e8d3

Please sign in to comment.