Skip to content

Commit

Permalink
Update phpstan/phpstan: from 1.10.14 to 1.10.15 (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Jun 1, 2023
1 parent 9dccc28 commit 8ae4bbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Rule/ForbidProtectedEnumMethodRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 8ae4bbf

Please sign in to comment.