Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Aug 13, 2024
1 parent 1bf60d9 commit 052acb2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ parameters:
- '~Class Doctrine\\Common\\Persistence\\Proxy not found~'
- '~Class Doctrine\\ODM\\MongoDB\\PersistentCollection not found~'
- '~Class Symfony\\(Contracts|Component)\\Translation\\TranslatorInterface not found~'
- '#Constructor of class JMS\\Serializer\\Annotation\\.*? has an unused parameter#'
- '#Class JMS\\Serializer\\Annotation\\DeprecatedReadOnly extends @final class JMS\\Serializer\\Annotation\\ReadOnlyProperty.#'
- '#^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\<object\>\:\:getFieldValue\(\)\.$#'
- '#^Call to an undefined method JMS\\Serializer\\Visitor\\DeserializationVisitorInterface\:\:getCurrentObject\(\)\.$#'
Expand Down
1 change: 1 addition & 0 deletions phpstan/ignore-by-php-version.neon.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
$includes = [];
if (PHP_VERSION_ID < 80000) {
$includes[] = __DIR__ . '/no-typed-prop.neon';
$includes[] = __DIR__ . '/no-unions.neon';
$includes[] = __DIR__ . '/no-attributes.neon';
$includes[] = __DIR__ . '/no-promoted-properties.neon';
}
Expand Down
3 changes: 3 additions & 0 deletions phpstan/no-unions.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
excludePaths:
- %currentWorkingDirectory%/tests/Fixtures/TypedProperties/ComplexDiscriminatedUnion.php

0 comments on commit 052acb2

Please sign in to comment.