From a3d5b4acf572e03965f69d2cc1fe0a2fabde5b19 Mon Sep 17 00:00:00 2001 From: Daniel Jun Suguimoto Date: Tue, 3 Mar 2020 23:31:15 -0300 Subject: [PATCH 1/4] Adding phpstan wrapper for laravel --- resources/tools.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/resources/tools.json b/resources/tools.json index b3dfda2e..26290aeb 100644 --- a/resources/tools.json +++ b/resources/tools.json @@ -747,6 +747,19 @@ } }, "test": "simple-phpunit --version" + }, + { + "name": "larastan", + "summary": "PHPStan extension for Laravel", + "website": "https://github.com/nunomaduro/larastan", + "command": { + "composer-bin-plugin": { + "package": "nunomaduro/larastan", + "namespace": "phpstan" + } + }, + "test": "true", + "tags": ["exclude-php:7.1"] } ] } From 9a04e94ef659a419793b04c67259c1777ef68bd9 Mon Sep 17 00:00:00 2001 From: Daniel Jun Suguimoto Date: Wed, 4 Mar 2020 22:26:03 -0300 Subject: [PATCH 2/4] Updating README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3f2620b6..62d6fa87 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ It has been extracted as a separate project to make maintenance easier and enabl * diffFilter - [Applies QA tools to run on a single pull request](https://github.com/exussum12/coverageChecker) * ecs - [Sets up and runs coding standard checks](https://github.com/Symplify/EasyCodingStandard) * infection - [AST based PHP Mutation Testing Framework](https://infection.github.io/) +* larastan - [A phpstan wrapper for Laravel](https://github.com/nunomaduro/larastan) * parallel-lint - [Checks PHP file syntax](https://github.com/JakubOnderka/PHP-Parallel-Lint) * paratest - [Parallel testing for PHPUnit](https://github.com/paratestphp/paratest) * pdepend - [Static Analysis Tool](https://pdepend.org/) From 900eed397a6905c34fa09fbbda852466c38a4ce0 Mon Sep 17 00:00:00 2001 From: Daniel Jun Suguimoto Date: Thu, 5 Mar 2020 21:56:42 -0300 Subject: [PATCH 3/4] Code review: checking if package was installed --- resources/tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/tools.json b/resources/tools.json index 26290aeb..cf33606a 100644 --- a/resources/tools.json +++ b/resources/tools.json @@ -758,7 +758,7 @@ "namespace": "phpstan" } }, - "test": "true", + "test": "composer global show nunomaduro/larastan", "tags": ["exclude-php:7.1"] } ] From 7f360f58ce94896d47ea544cb0046a9e70251fea Mon Sep 17 00:00:00 2001 From: Daniel Jun Suguimoto Date: Fri, 6 Mar 2020 09:49:13 -0300 Subject: [PATCH 4/4] Code review fix --- resources/tools.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/tools.json b/resources/tools.json index cf33606a..fa285af4 100644 --- a/resources/tools.json +++ b/resources/tools.json @@ -758,8 +758,7 @@ "namespace": "phpstan" } }, - "test": "composer global show nunomaduro/larastan", - "tags": ["exclude-php:7.1"] + "test": "composer global bin phpstan show ergebnis/phpstan-rules" } ] }