Przeglądaj źródła

ignore api platform noNamedArgument phpstan errors

Olivier Massot 6 miesięcy temu
rodzic
commit
83df29d0f1
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      phpstan.neon.dist

+ 1 - 0
phpstan.neon.dist

@@ -12,6 +12,7 @@ parameters:
         - identifier: 'missingType.generics'
         - identifier: 'missingType.generics'
         - '#Class App\\Repository\\.+Repository has PHPDoc tag @method for method .+\(\) parameter .* with no value type specified in iterable type array\.$#'
         - '#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\.$#'
 #        - '#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:
     ergebnis:
         # TODO: simplify by using allRules: false (https://github.com/ergebnis/phpstan-rules?tab=readme-ov-file#enabling-rules-one-by-one)
         # TODO: simplify by using allRules: false (https://github.com/ergebnis/phpstan-rules?tab=readme-ov-file#enabling-rules-one-by-one)