Skip to content

Commit 12cdfea

Browse files
committed
fix(UpdatePHPStanMethodNodeParamDocblockFromNodeTypesRector): Swap method retrieval order in UpdatePHPStanMethodNodeParamDocblockFromNodeTypesRector
- Change the order of method retrieval from classNode to prioritize 'processNode' over 'rawProcessNode'. - This improves the logic flow by attempting to access the more commonly used method first.
1 parent 1554c54 commit 12cdfea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rector/Class_/UpdatePHPStanMethodNodeParamDocblockFromNodeTypesRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function classType(): string
9797
*/
9898
protected function classMethodNode(Class_ $classNode): ?ClassMethod
9999
{
100-
return $classNode->getMethod('rawProcessNode') ?? $classNode->getMethod('processNode');
100+
return $classNode->getMethod('processNode') ?? $classNode->getMethod('rawProcessNode');
101101
}
102102

103103
/**

0 commit comments

Comments
 (0)