Skip to content

Commit

Permalink
Add psalm-suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Jan 11, 2024
1 parent cb55018 commit 2a6e8ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Framework/Bootloader/Attributes/AttributesBootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ private function initReader(
$supportAnnotations = $config->isAnnotationsReaderEnabled();

if ($supportAnnotations) {
/** @psalm-suppress UndefinedClass */
if (!\interface_exists(DoctrineReaderInterface::class)) {
throw new InitializationException(
'Doctrine annotations reader is not available, please install "doctrine/annotations" package',
);
}

/** @psalm-suppress UndefinedClass, InvalidArgument */
$reader = new SelectiveReader([
$reader,
new AnnotationReader(new DoctrineAnnotationReader()),
Expand Down

0 comments on commit 2a6e8ac

Please sign in to comment.