From 8ae4bbf8f0a30094e220a1ad431037adbae01683 Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Thu, 1 Jun 2023 12:33:35 +0200 Subject: [PATCH] Update phpstan/phpstan: from 1.10.14 to 1.10.15 (#124) --- composer.lock | 10 +++++----- src/Rule/ForbidProtectedEnumMethodRule.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index fc80185..57122e9 100644 --- a/composer.lock +++ b/composer.lock @@ -64,16 +64,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.14", + "version": "1.10.15", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "d232901b09e67538e5c86a724be841bea5768a7c" + "reference": "762c4dac4da6f8756eebb80e528c3a47855da9bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d232901b09e67538e5c86a724be841bea5768a7c", - "reference": "d232901b09e67538e5c86a724be841bea5768a7c", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/762c4dac4da6f8756eebb80e528c3a47855da9bd", + "reference": "762c4dac4da6f8756eebb80e528c3a47855da9bd", "shasum": "" }, "require": { @@ -122,7 +122,7 @@ "type": "tidelift" } ], - "time": "2023-04-19T13:47:27+00:00" + "time": "2023-05-09T15:28:01+00:00" } ], "packages-dev": [ diff --git a/src/Rule/ForbidProtectedEnumMethodRule.php b/src/Rule/ForbidProtectedEnumMethodRule.php index 3aeca23..0af7a94 100644 --- a/src/Rule/ForbidProtectedEnumMethodRule.php +++ b/src/Rule/ForbidProtectedEnumMethodRule.php @@ -35,7 +35,7 @@ public function processNode(Node $node, Scope $scope): array foreach ($node->getMethods() as $classMethod) { if ( $classMethod->isProtected() - && !$classMethod->isDeclaredInTrait() // @phpstan-ignore-line ignore BC promise + && !$classMethod->isDeclaredInTrait() ) { $errors[] = RuleErrorBuilder::message('Protected methods within enum makes no sense as you cannot extend them anyway.') ->line($classMethod->getLine())