Skip to content

Commit 47cbb9e

Browse files
committed
CS
1 parent b1df559 commit 47cbb9e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Type/Php/ReplaceSafeFunctionsDynamicReturnTypeExtension.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use PHPStan\Type\TypeCombinator;
1616
use PHPStan\Type\TypeUtils;
1717

18-
1918
class ReplaceSafeFunctionsDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
2019
{
2120

@@ -33,8 +32,7 @@ public function getTypeFromFunctionCall(
3332
FunctionReflection $functionReflection,
3433
FuncCall $functionCall,
3534
Scope $scope
36-
): Type
37-
{
35+
): Type {
3836
$type = $this->getPreliminarilyResolvedTypeFromFunctionCall($functionReflection, $functionCall, $scope);
3937

4038
$possibleTypes = ParametersAcceptorSelector::selectSingle($functionReflection->getVariants())->getReturnType();
@@ -50,8 +48,7 @@ private function getPreliminarilyResolvedTypeFromFunctionCall(
5048
FunctionReflection $functionReflection,
5149
FuncCall $functionCall,
5250
Scope $scope
53-
): Type
54-
{
51+
): Type {
5552
$argumentPosition = $this->functions[$functionReflection->getName()];
5653
if (count($functionCall->args) <= $argumentPosition) {
5754
return ParametersAcceptorSelector::selectSingle($functionReflection->getVariants())->getReturnType();
@@ -79,5 +76,4 @@ private function getPreliminarilyResolvedTypeFromFunctionCall(
7976

8077
return $defaultReturnType;
8178
}
82-
8379
}

0 commit comments

Comments
 (0)