Skip to content

Commit

Permalink
Update class-leak package (#4534)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 19, 2023
1 parent 6451387 commit 8e33c93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

-
name: 'Active Classes'
run: vendor/bin/easy-ci check-active-class bin config src packages rules --ansi
run: vendor/bin/class-leak check bin config src rules packages --skip-type="Rector\\NodeTypeResolver\\PHPStan\\Scope\\Contract\\NodeVisitor\\ScopeResolverNodeVisitorInterface" --skip-type="Rector\\BetterPhpDocParser\\Contract\\BasePhpDocNodeVisitorInterface" --skip-type="Rector\\Core\\Contract\\Processor\\FileProcessorInterface" --skip-type="Rector\\BetterPhpDocParser\\Contract\\PhpDocParser\\PhpDocNodeDecoratorInterface"

-
name: 'Compatible PHPStan versions'
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"symplify/phpstan-rules": "^12.0",
"symplify/rule-doc-generator": "^11.2",
"symplify/vendor-patches": "^11.2",
"tomasvotruba/class-leak": "0.0.21.72",
"tomasvotruba/cognitive-complexity": "^0.1",
"tomasvotruba/type-coverage": "^0.2",
"tomasvotruba/unused-public": "^0.1"
Expand Down
2 changes: 1 addition & 1 deletion rules/Php72/NodeFactory/AnonymousFunctionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ private function createInnerMethodCall(
): MethodCall | StaticCall | null {
if ($phpMethodReflection->isStatic()) {
$expr = $this->normalizeClassConstFetchForStatic($expr);
if ($expr === null) {
if (! $expr instanceof Node) {
return null;
}

Expand Down

0 comments on commit 8e33c93

Please sign in to comment.