From b6c5166a5e163b20da01ade88eec1bd20e200005 Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Wed, 17 Feb 2021 11:03:15 +0000 Subject: [PATCH] Install larastan in a separate namespace with its own phpstan installation --- README.md | 3 ++- resources/phpstan.json | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2dcac3c9..4678f486 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ It has been extracted as a separate project to make maintenance easier and enabl * composer-unused - [Show unused packages by scanning your code](https://github.com/icanhazstring/composer-unused) * dephpend - [Detect flaws in your architecture](https://dephpend.com/) * deprecation-detector - [Finds usages of deprecated code](https://github.com/sensiolabs-de/deprecation-detector) -* deptrac - [Enforces dependency rules between software layers](https://github.com/sensiolabs-de/deptrac) +* deptrac - [Enforces dependency rules between software layers](https://github.com/qossmic/deptrac) * diffFilter - [Applies QA tools to run on a single pull request](https://github.com/exussum12/coverageChecker) * doctrine-psalm-plugin - [Stubs to let Psalm understand Doctrine better](https://github.com/weirdan/doctrine-psalm-plugin) * ecs - [Sets up and runs coding standard checks](https://github.com/Symplify/EasyCodingStandard) @@ -66,6 +66,7 @@ It has been extracted as a separate project to make maintenance easier and enabl * phpstan-doctrine - [Doctrine extensions for PHPStan](https://github.com/phpstan/phpstan-doctrine) * phpstan-ergebnis-rules - [Additional rules for PHPstan](https://github.com/ergebnis/phpstan-rules) * phpstan-exception-rules - [PHPStan rules for checked and unchecked exceptions](https://github.com/pepakriz/phpstan-exception-rules) +* phpstan-larastan - [Separate installation of phpstan for larastan](https://github.com/phpstan/phpstan) * phpstan-phpunit - [PHPUnit extensions and rules for PHPStan](https://github.com/phpstan/phpstan-phpunit) * phpstan-strict-rules - [Extra strict and opinionated rules for PHPStan](https://github.com/phpstan/phpstan-strict-rules) * phpstan-symfony - [Symfony extension for PHPStan](https://github.com/phpstan/phpstan-symfony) diff --git a/resources/phpstan.json b/resources/phpstan.json index ce2c72b3..2f7ed4fc 100644 --- a/resources/phpstan.json +++ b/resources/phpstan.json @@ -131,6 +131,20 @@ "test": "composer global bin phpstan show pepakriz/phpstan-exception-rules", "tags": ["phpstan"] }, + { + "name": "phpstan-larastan", + "summary": "Separate installation of phpstan for larastan", + "website": "https://github.com/phpstan/phpstan", + "command": { + "composer-bin-plugin": { + "package": "phpstan/phpstan", + "namespace": "larastan", + "links": {"%target-dir%/phpstan-larastan": "phpstan"} + } + }, + "test": "phpstan-larastan --version", + "tags": ["phpstan"] + }, { "name": "larastan", "summary": "PHPStan extension for Laravel", @@ -138,7 +152,7 @@ "command": { "composer-bin-plugin": { "package": "nunomaduro/larastan", - "namespace": "phpstan" + "namespace": "larastan" } }, "test": "composer global bin phpstan show ergebnis/phpstan-rules",