Skip to content

Commit

Permalink
PHPStan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienHarper committed Aug 7, 2022
1 parent 55ce235 commit 1dc7a65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ parameters:
- '~Dead catch - Throwable is never thrown in the try block~'
- '~Parameter \#1 \$className of method Doctrine\\ORM\\EntityManagerInterface\:\:getClassMetadata\(\) expects class-string<object>, string given\.~'
- '~Unable to resolve the template type T in call to method Doctrine\\ORM\\EntityManagerInterface\:\:getClassMetadata\(\)~'
- '~Property DH\\Auditor\\Provider\\Doctrine\\Configuration\:\:\$(storage|auditing)Services is never read, only written\.~'
4 changes: 2 additions & 2 deletions src/Provider/Doctrine/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Configuration implements ConfigurationInterface

private ?array $entities = null;

private array $storageServices = []; // @phpstan-ignore-line
private array $storageServices = [];

private array $auditingServices = []; // @phpstan-ignore-line
private array $auditingServices = [];

private bool $isViewerEnabled;

Expand Down

0 comments on commit 1dc7a65

Please sign in to comment.