Browse Source

ignore api platform noNamedArgument phpstan errors

Olivier Massot 6 months ago
parent
commit
83df29d0f1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      phpstan.neon.dist

+ 1 - 0
phpstan.neon.dist

@@ -12,6 +12,7 @@ parameters:
         - identifier: 'missingType.generics'
         - '#Class App\\Repository\\.+Repository has PHPDoc tag @method for method .+\(\) parameter .* with no value type specified in iterable type array\.$#'
 #        - '#Property .+::\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
+        - '#Constructor of ApiPlatform\\Metadata\\[a-zA-Z]+ is invoked with named argument#'
 
     ergebnis:
         # TODO: simplify by using allRules: false (https://github.com/ergebnis/phpstan-rules?tab=readme-ov-file#enabling-rules-one-by-one)