diff --git a/.travis.yml b/.travis.yml
index 3f8f8e78f4..c46836b964 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,7 +19,7 @@ jobs:
after_script:
- travis_retry php vendor/bin/php-coveralls -v
- stage: test
- php: 7.4snapshot
+ php: 7.4
env: PREFER_LOWEST=""
before_script:
- *composerupdate
diff --git a/composer.json b/composer.json
index 6675cc924d..0e758543a3 100644
--- a/composer.json
+++ b/composer.json
@@ -35,13 +35,13 @@
"phpunit/phpunit": "^8.2.4",
"php-coveralls/php-coveralls": "^2.1",
"mouf/picotainer": "^1.1",
- "phpstan/phpstan": "^0.11",
+ "phpstan/phpstan": "^0.12.3",
"beberlei/porpaginas": "^1.2",
"myclabs/php-enum": "^1.6.6",
- "doctrine/coding-standard": "^6.0",
- "phpstan/phpstan-webmozart-assert": "^0.11.2",
+ "doctrine/coding-standard": "^7.0",
+ "phpstan/phpstan-webmozart-assert": "^0.12",
"phpstan/extension-installer": "^1.0",
- "thecodingmachine/phpstan-strict-rules": "^0.11.2",
+ "thecodingmachine/phpstan-strict-rules": "^0.12",
"zendframework/zend-diactoros": "^2"
},
"suggest": {
@@ -58,7 +58,7 @@
}
},
"scripts": {
- "phpstan": "phpstan analyse src -c phpstan.neon --level=7 --no-progress -vvv",
+ "phpstan": "phpstan analyse src -c phpstan.neon --level=8 --no-progress -vvv",
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"test": ["@cs-check", "@phpstan", "phpunit"]
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 06647ae490..42ad281edc 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -51,4 +51,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/phpstan.neon b/phpstan.neon
index 49a0305c14..a723732dd8 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -18,6 +18,12 @@ parameters:
-
message: '#Parameter \#2 \$subType of method .* expects#'
path: src/Mappers/Root/IteratorTypeMapper.php
+ -
+ message: '#Unreachable statement - code above always terminates.#'
+ path: src/Http/WebonyxGraphqlMiddleware.php
+ -
+ message: '#Property TheCodingMachine\GraphQLite\Annotations\Type::$class \(class-string