Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
uses: rectorphp/reusable-workflows/.github/workflows/code_analysis.yaml@main

rector:
# run only on main repository, not on the forks without access
if: github.repository == 'driftingly/rector-laravel'
# run only on PR's from branches on main repository (from core contributors), not on the forks or PR's from forks.
if: github.event.pull_request.head.repo.full_name == github.repository

# see https://github.com/rectorphp/reusable-workflows
uses: rectorphp/reusable-workflows/.github/workflows/rector.yaml@main
4 changes: 2 additions & 2 deletions src/NodeAnalyzer/LumenRouteRegisteringMethodAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public function __construct(
) {
}

public function isLumenRoutingClass(MethodCall $methodCall): bool
public function isLumenRoutingClass(MethodCall $node): bool
{
return $this->nodeTypeResolver->isObjectType($methodCall->var, new ObjectType('Laravel\Lumen\Routing\Router'));
return $this->nodeTypeResolver->isObjectType($node->var, new ObjectType('Laravel\Lumen\Routing\Router'));
}

public function isRoutesRegisterGroup(Identifier|Expr $name): bool
Expand Down