From 024ac52fb96d19ba9aba357680cf64f4bec5121e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jakes=CC=8C?= Date: Mon, 17 Feb 2020 16:35:00 +0100 Subject: [PATCH] Add phpstan-doctrine extension [MAILPOET-2715] --- tasks/phpstan/composer.json | 1 + tasks/phpstan/composer.lock | 66 +++++++++++++++++++++++++++++++- tasks/phpstan/phpstan-tests.neon | 1 + tasks/phpstan/phpstan.neon | 1 + 4 files changed, 68 insertions(+), 1 deletion(-) diff --git a/tasks/phpstan/composer.json b/tasks/phpstan/composer.json index 8c888df8a9..26006830f8 100644 --- a/tasks/phpstan/composer.json +++ b/tasks/phpstan/composer.json @@ -1,6 +1,7 @@ { "require": { "phpstan/phpstan": "0.12.11", + "phpstan/phpstan-doctrine": "0.12.9", "phpstan/phpstan-phpunit": "0.12.6" }, "autoload": { diff --git a/tasks/phpstan/composer.lock b/tasks/phpstan/composer.lock index 618aed1508..9a20c19d8d 100644 --- a/tasks/phpstan/composer.lock +++ b/tasks/phpstan/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0608a33782123fcac9a6912e57bdcf65", + "content-hash": "e7ba2a1806e53e0b1e80d3e94f1bf38d", "packages": [ { "name": "nikic/php-parser", @@ -97,6 +97,70 @@ "description": "PHPStan - PHP Static Analysis Tool", "time": "2020-02-16T14:00:29+00:00" }, + { + "name": "phpstan/phpstan-doctrine", + "version": "0.12.9", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-doctrine.git", + "reference": "af14feb2ed259f9eb16d3107e63d85ed516e30af" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan-doctrine/zipball/af14feb2ed259f9eb16d3107e63d85ed516e30af", + "reference": "af14feb2ed259f9eb16d3107e63d85ed516e30af", + "shasum": "" + }, + "require": { + "php": "~7.1", + "phpstan/phpstan": "^0.12.3" + }, + "conflict": { + "doctrine/collections": "<1.0", + "doctrine/common": "<2.7", + "doctrine/mongodb-odm": "<1.2", + "doctrine/orm": "<2.5" + }, + "require-dev": { + "consistence/coding-standard": "^3.0.1", + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4", + "doctrine/collections": "^1.0", + "doctrine/common": "^2.7", + "doctrine/mongodb-odm": "^1.2", + "doctrine/orm": "^2.5", + "ergebnis/composer-normalize": "^2.0.2", + "jakub-onderka/php-parallel-lint": "^1.0", + "phing/phing": "^2.16.0", + "phpstan/phpstan-phpunit": "^0.12", + "phpstan/phpstan-strict-rules": "^0.12", + "phpunit/phpunit": "^7.0", + "ramsey/uuid-doctrine": "^1.5.0", + "slevomat/coding-standard": "^4.5.2" + }, + "type": "phpstan-extension", + "extra": { + "branch-alias": { + "dev-master": "0.12-dev" + }, + "phpstan": { + "includes": [ + "extension.neon", + "rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Doctrine extensions for PHPStan", + "time": "2020-01-10T12:31:37+00:00" + }, { "name": "phpstan/phpstan-phpunit", "version": "0.12.6", diff --git a/tasks/phpstan/phpstan-tests.neon b/tasks/phpstan/phpstan-tests.neon index d3aa12b74a..168db95fa0 100644 --- a/tasks/phpstan/phpstan-tests.neon +++ b/tasks/phpstan/phpstan-tests.neon @@ -29,6 +29,7 @@ parameters: checkMissingTypehints: false includes: + - vendor/phpstan/phpstan-doctrine/extension.neon - vendor/phpstan/phpstan-phpunit/extension.neon - extensions/CodeceptionExtension/extension.neon - phpstan-baseline-unit-tests.neon # https://medium.com/@ondrejmirtes/phpstans-baseline-feature-lets-you-hold-new-code-to-a-higher-standard-e77d815a5dff diff --git a/tasks/phpstan/phpstan.neon b/tasks/phpstan/phpstan.neon index 0b38603fd7..986da43468 100644 --- a/tasks/phpstan/phpstan.neon +++ b/tasks/phpstan/phpstan.neon @@ -26,4 +26,5 @@ parameters: checkMissingVarTagTypehint: false checkMissingTypehints: false includes: + - vendor/phpstan/phpstan-doctrine/extension.neon - phpstan-baseline.neon # https://medium.com/@ondrejmirtes/phpstans-baseline-feature-lets-you-hold-new-code-to-a-higher-standard-e77d815a5dff