Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 852d228

Browse files
committed
Merge branch 'hotfix/503'
Close #503
2 parents 8011cec + 1774ccf commit 852d228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ private function checkForDuplicateRoute($path, $methods = null)
474474
}, false);
475475
});
476476

477-
if (count($matches) > 0) {
477+
if (! empty($matches)) {
478478
throw new Exception\DuplicateRouteException(
479479
'Duplicate route detected; same name or path, and one or more HTTP methods intersect'
480480
);

0 commit comments

Comments
 (0)