Skip to content

Commit 691e71b

Browse files
committed
fixup! [type-declaration-docblocks] Add AddReturnDocblockDataProviderRector
1 parent 0df730c commit 691e71b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

rules/CodingStyle/Rector/FunctionLike/FunctionLikeToFirstClassCallableRector.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,27 @@ private function shouldSkip(
8080
if ($callLike->isFirstClassCallable()) {
8181
return true;
8282
}
83+
8384
if ($this->isChainedCall($callLike)) {
8485
return true;
8586
}
87+
8688
if ($this->isUsingNamedArgs($args)) {
8789
return true;
8890
}
91+
8992
if ($this->isUsingByRef($params)) {
9093
return true;
9194
}
95+
9296
if ($this->isNotUsingSameParamsForArgs($params, $args)) {
9397
return true;
9498
}
99+
95100
if ($this->isDependantMethod($callLike, $params)) {
96101
return true;
97102
}
103+
98104
return $this->isUsingThisInNonObjectContext($callLike, $scope);
99105
}
100106

@@ -227,6 +233,7 @@ private function isChainedCall(FuncCall|MethodCall|StaticCall $callLike): bool
227233
if (! $callLike instanceof MethodCall) {
228234
return false;
229235
}
236+
230237
return $callLike->var instanceof CallLike;
231238
}
232239
}

0 commit comments

Comments
 (0)