Skip to content

Commit

Permalink
fix try/catch variable must be initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Jun 24, 2023
1 parent fad1768 commit 52ca871
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -141,6 +141,7 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev
// check if we have enough/too many arguments and a valid format
$initial_result = null;
while (count($dummy) > -1) {
$result = null;
try {
// before PHP 8, an uncatchable Warning is thrown if too few arguments are passed
// which is ignored and handled below instead
Expand Down

0 comments on commit 52ca871

Please sign in to comment.