Skip to content

Commit

Permalink
Merge pull request #243 from alikhosravidev/master
Browse files Browse the repository at this point in the history
fixed bug in check:imports
  • Loading branch information
imanghafoori1 authored Nov 26, 2022
2 parents bfa808c + 54a7caa commit 9d3f533
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CheckClassReferencesAreValid.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Imanghafoori\TokenAnalyzer\ClassRefExpander;
use Imanghafoori\TokenAnalyzer\GetClassProperties;
use Imanghafoori\TokenAnalyzer\ParseUseStatement;
use RuntimeException;

class CheckClassReferencesAreValid
{
Expand Down Expand Up @@ -214,6 +215,10 @@ public static function findClassRefs($tokens, $absFilePath, $imports)
} catch (ErrorException $e) {
self::requestIssue($absFilePath);

return [[], '', []];
} catch (RuntimeException $e) {
self::requestIssue($absFilePath);

return [[], '', []];
}
}
Expand Down

0 comments on commit 9d3f533

Please sign in to comment.