From aee2cb0f0731a2d03fdead261021a04adc63c22c Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 20 Apr 2021 21:00:46 +0200 Subject: [PATCH] prefixed - require compatible PHPStan with attribute phpdoc-parser (#6181) --- build/target-repository/composer.json | 6 +++++- .../Rector/List_/DowngradeKeysInListRector.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build/target-repository/composer.json b/build/target-repository/composer.json index 836d81b9b7a5..32d8978382d0 100644 --- a/build/target-repository/composer.json +++ b/build/target-repository/composer.json @@ -7,11 +7,15 @@ ], "require": { "php": "^7.0|^8.0", - "phpstan/phpstan": "^0.9.3 || ^0.12.82" + "phpstan/phpstan": "^0.12.83" }, "extra": { "branch-alias": { "dev-main": "0.10-dev" } + }, + "conflict": { + "phpstan/phpdoc-parser": "<=0.5.3", + "phpstan/phpstan": "<=0.12.82" } } diff --git a/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php b/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php index 79e87f8fa5eb..2917f3c0d159 100644 --- a/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php +++ b/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php @@ -6,10 +6,10 @@ use PhpParser\Node; use PhpParser\Node\Expr; +use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\ArrayItem; use PhpParser\Node\Expr\Assign; -use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\List_; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Stmt\Expression;