Skip to content

Commit a28b4bc

Browse files
committed
refactor: remove unnecessary is_countable() check in getMethodParams
1 parent 153922e commit a28b4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Router/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ private function processArrayCallableSyntax(string $from, array $to): string
16041604
private function getMethodParams(string $from): string
16051605
{
16061606
preg_match_all('/\(.+?\)/', $from, $matches);
1607-
$count = is_countable($matches[0]) ? count($matches[0]) : 0;
1607+
$count = count($matches[0]);
16081608

16091609
$params = '';
16101610

0 commit comments

Comments
 (0)