From 030eaf815d1f8e825615c031e8e9b82b84a5f4fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 4 Nov 2019 16:43:38 +0100 Subject: [PATCH 1/5] Introduce phpstan --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4b0bd1936..5357e366d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,11 @@ install: script: - composer test + - | + if [ "$(phpenv version-name)" == "7.2" ]; then + composer require --dev "phpstan/phpstan-shim:^0.11.0" + vendor/bin/phpstan analyze + fi after_success: - travis_retry php vendor/bin/php-coveralls -v From 055e08450dafa2ba221ee090bfdb71573b7cf957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 4 Nov 2019 16:44:49 +0100 Subject: [PATCH 2/5] Create phpstan.neon.dist --- phpstan.neon.dist | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 phpstan.neon.dist diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 000000000..468eac73f --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,8 @@ +parameters: + #level: max + level: 0 + paths: + - %currentWorkingDirectory%/src/ + ignoreErrors: + # Uses func_get_args() + - '#^Method Robo\\Tasks::task\(\) invoked with [12345] parameters?, 0 required\.$#' From a242a6aa4e51209cd226af1a1856cea9cffced33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 4 Nov 2019 16:52:15 +0100 Subject: [PATCH 3/5] Add ignore-platform-reqs as PHP version is fixed at 5.6 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5357e366d..cb0cd5fbd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,7 +37,7 @@ script: - composer test - | if [ "$(phpenv version-name)" == "7.2" ]; then - composer require --dev "phpstan/phpstan-shim:^0.11.0" + composer require --dev --ignore-platform-reqs "phpstan/phpstan-shim:^0.11.0" vendor/bin/phpstan analyze fi From 74a7dcf505d13c197a45f6ac8951670451a62660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 4 Nov 2019 17:05:51 +0100 Subject: [PATCH 4/5] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index cb0cd5fbd..c301d9158 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,7 @@ script: - composer test - | if [ "$(phpenv version-name)" == "7.2" ]; then + composer remove goaop/framework composer require --dev --ignore-platform-reqs "phpstan/phpstan-shim:^0.11.0" vendor/bin/phpstan analyze fi From aee3df10d622015a71823bd5f6dd5330b95de490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 22 May 2020 21:15:59 +0200 Subject: [PATCH 5/5] Upgrade PHPStan --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c301d9158..71c0e5958 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,7 @@ script: - | if [ "$(phpenv version-name)" == "7.2" ]; then composer remove goaop/framework - composer require --dev --ignore-platform-reqs "phpstan/phpstan-shim:^0.11.0" + composer require --dev --ignore-platform-reqs "phpstan/phpstan:^0.12.0" vendor/bin/phpstan analyze fi