Skip to content

Commit 0ba411d

Browse files
imliamsamsonasik
andauthored
Update rules/TypeDeclaration/Rector/ClassMethod/AddReturnDocblockForScalarArrayFromAssignsRector.php
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
1 parent d503e1e commit 0ba411d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

rules/TypeDeclaration/Rector/ClassMethod/AddReturnDocblockForScalarArrayFromAssignsRector.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ public function refactor(Node $node): ?Node
123123

124124
$returnsScoped = $this->betterNodeFinder->findReturnsScoped($node);
125125

126-
if ($returnsScoped === []) {
127-
return null;
128-
}
129126

130127
if (! $this->returnAnalyzer->hasOnlyReturnWithExpr($node, $returnsScoped)) {
131128
return null;

0 commit comments

Comments
 (0)