Olivier Massot 2 年之前
父节点
当前提交
a747e3cb27
共有 3 个文件被更改,包括 11 次插入14 次删除
  1. 1 1
      composer.json
  2. 0 4
      env/.env.staging
  3. 10 9
      phpstan.neon.dist

+ 1 - 1
composer.json

@@ -81,7 +81,7 @@
     "phpstan/phpstan": "^1.10",
     "phpstan/phpstan-doctrine": "^1.3",
     "phpstan/phpstan-phpunit": "^1.3",
-    "phpstan/phpstan-symfony": "^1.2",
+    "phpstan/phpstan-symfony": "^1.3",
     "phpunit/phpunit": "^9.6",
     "rector/rector": "^0.15.13",
     "symfony/browser-kit": "6.3.*",

+ 0 - 4
env/.env.staging

@@ -27,7 +27,3 @@ INTERNAL_FILES_DOWNLOAD_URI=https://none
 LOG_FILE_NAME=staging
 ###< filename log ###
 
-###> api v1 ###
-API_LEG_BASE_URL=xxx
-###< api v1 ###
-

+ 10 - 9
phpstan.neon.dist

@@ -1,12 +1,13 @@
 # https://phpstan.org/config-reference
 parameters:
-	level: 6
-	treatPhpDocTypesAsCertain: false
-	checkGenericClassInNonGenericObjectType: false
+    level: 6
+    treatPhpDocTypesAsCertain: false
+    checkGenericClassInNonGenericObjectType: false
+    paths:
+        - src
+
+    # on ignore les erreurs qui proviennent d'un importe d'un attribut PhpStorm
+    # on ignore les erreurs qui imposent d'indiquer le type d'un iterable dans la phpDoc (cf: https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type)
+    ignoreErrors :
+        - '#Attribute class JetBrains\\PhpStorm\\[a-zA-Z]+ does not exist.#'
 
-# on ignore les erreurs qui proviennent d'un importe d'un attribut PhpStorm
-# on ignore les erreurs qui imposent d'indiquer le type d'un iterable dans la phpDoc (cf: https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type)
-	ignoreErrors :
-	    - '#Attribute class JetBrains\\PhpStorm\\[a-zA-Z]+ does not exist.#'
-	paths:
-		- src