Skip to content

Commit

Permalink
Suppress rest of the issues related to lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Jan 6, 2023
1 parent 5546ade commit 863b9b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>Tests/*</exclude-pattern>
<exclude-pattern>Repository/ServiceEntityRepository.php</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
<exclude-pattern>Tests/*</exclude-pattern>
Expand Down
12 changes: 12 additions & 0 deletions psalm.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,17 @@
<directory name="Tests/DependencyInjection"/>
</errorLevel>
</UndefinedDocblockClass>
<UndefinedTrait>
<errorLevel type="suppress">
<!-- Consumer is meant to check if trait exists before using this class -->
<file name="Repository/LazyServiceEntityRepository.php"/>
</errorLevel>
</UndefinedTrait>
<DuplicateClass>
<errorLevel type="suppress">
<!-- Conditional class definition-->
<file name="Repository/ServiceEntityRepository.php"/>
</errorLevel>
</DuplicateClass>
</issueHandlers>
</psalm>

0 comments on commit 863b9b3

Please sign in to comment.