Skip to content

Commit

Permalink
Fixed minor issue in the path middleware class
Browse files Browse the repository at this point in the history
  • Loading branch information
divineniiquaye committed Oct 11, 2022
1 parent c13c1e6 commit b2a4ef3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Middlewares/PathMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ public function __construct(
) {
$this->permanent = $permanent;
$this->keepRequestMethod = $keepRequestMethod;

if (!empty($uriSuffixes)) {
$this->uriSuffixes = \array_combine($uriSuffixes, $uriSuffixes);
}
$this->uriSuffixes = empty($uriSuffixes) ? ['/' => '/'] : \array_combine($uriSuffixes, $uriSuffixes);
}

/**
Expand Down

0 comments on commit b2a4ef3

Please sign in to comment.