Skip to content

Commit

Permalink
Disable error warnings if generics arent provided, since they were ad…
Browse files Browse the repository at this point in the history
…ded in SW 6.5.something
  • Loading branch information
jkniest committed Jun 3, 2024
1 parent 1983de3 commit 777751c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ parameters:

# The level 9 is the highest level
level: 9

ignoreErrors:
# This is ignored until we drop support for Shopware 6.5
- message: '#Shopware\\Core\\Framework\\DataAbstractionLayer\\EntityRepository is not generic\.#'
reportUnmatched: false
4 changes: 3 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
</projectFiles>

<issueHandlers>
<LessSpecificReturnType errorLevel="info" />
<!-- This is ignored until we drop support for Shopware 6.5 -->
<TooManyTemplateParams errorLevel="suppress" />

<LessSpecificImplementedReturnType errorLevel="suppress" />

<LessSpecificReturnType errorLevel="info" />
<DeprecatedMethod errorLevel="info" />
<DeprecatedProperty errorLevel="info" />
<DeprecatedClass errorLevel="info" />
Expand Down

0 comments on commit 777751c

Please sign in to comment.