Skip to content

Commit

Permalink
Merge pull request #9206 from datamweb/refctor-RouteCollection
Browse files Browse the repository at this point in the history
refactor: remove unnecessary `is_countable()` check in `getMethodParams()`
  • Loading branch information
kenjis authored Oct 3, 2024
2 parents 153922e + a28b4bc commit ba8e97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ private function processArrayCallableSyntax(string $from, array $to): string
private function getMethodParams(string $from): string
{
preg_match_all('/\(.+?\)/', $from, $matches);
$count = is_countable($matches[0]) ? count($matches[0]) : 0;
$count = count($matches[0]);

$params = '';

Expand Down

0 comments on commit ba8e97a

Please sign in to comment.