Skip to content

Commit 72e8f0e

Browse files
committed
Add hack of class_exists to AnnotationBuilder
1 parent 45a5dda commit 72e8f0e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

phpcs.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
<exclude-pattern>config/module.config.php</exclude-pattern>
4343
</rule>
4444

45+
<rule ref="PSR1.Files.SideEffects">
46+
<exclude-pattern>src/DoctrineORMModule/Form/Annotation/AnnotationBuilder.php</exclude-pattern>
47+
</rule>
48+
4549
<!-- Paths to check -->
4650
<file>config</file>
4751
<file>src</file>

src/DoctrineORMModule/Form/Annotation/AnnotationBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Laminas\EventManager\EventManagerInterface;
1212
use Laminas\Form\Annotation\AnnotationBuilder as LaminasAnnotationBuilder;
1313

14+
use function class_exists;
1415
use function get_class;
1516
use function in_array;
1617
use function is_object;
@@ -129,3 +130,5 @@ protected function checkForExcludeElementFromMetadata(ClassMetadata $metadata, s
129130
return $result;
130131
}
131132
}
133+
134+
class_exists(ClassMetadata::class);

0 commit comments

Comments
 (0)