Skip to content

Commit

Permalink
bump to PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Mar 8, 2024
1 parent bb0d94d commit d05eaf4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
"license": "MIT",
"keywords": ["static analysis", "phpstan-extension"],
"require": {
"php": "^8.1",
"phpstan/phpstan": "^1.10"
"php": "^8.2",
"phpstan/phpstan": "^1.10.60"
},
"require-dev": {
"phpstan/extension-installer": "^1.3",
"phpunit/phpunit": "^10.3",
"symplify/easy-coding-standard": "^12.0",
"rector/rector": "^0.18",
"phpunit/phpunit": "^10.5",
"symplify/easy-coding-standard": "^12.1",
"rector/rector": "^1.0.2",
"tracy/tracy": "^2.10",
"php-parallel-lint/php-parallel-lint": "^1.3",
"tomasvotruba/unused-public": "^0.2"
},
"autoload": {
Expand Down
12 changes: 6 additions & 6 deletions src/Collectors/ReturnTypeDeclarationCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ public function processNode(Node $node, Scope $scope): ?array
return null;
}

if ($scope->isInTrait()) {
$originalMethodName = $node->getAttribute('originalTraitMethodName');
if ($originalMethodName === '__construct') {
return null;
}
}
if ($scope->isInTrait()) {
$originalMethodName = $node->getAttribute('originalTraitMethodName');
if ($originalMethodName === '__construct') {
return null;
}
}

$missingTypeLines = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
final class SkipTraitConstructor
{
use TraitWithConstructor {
TraitWithConstructor::__construct as traitConstruct;
TraitWithConstructor::__construct as traitConstruct;
}

public function __construct()
Expand Down

0 comments on commit d05eaf4

Please sign in to comment.