Skip to content

Commit ba8e97a

Browse files
authored
Merge pull request #9206 from datamweb/refctor-RouteCollection
refactor: remove unnecessary `is_countable()` check in `getMethodParams()`
2 parents 153922e + a28b4bc commit ba8e97a

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)