Skip to content

Commit d146e0e

Browse files
committed
fix
1 parent 2bccde7 commit d146e0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Php/PhpVersions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function producesWarningForFinalPrivateMethods(): TrinaryLogic
3333
return IntegerRangeType::fromInterval(80000, null)->isSuperTypeOf($this->phpVersions)->result;
3434
}
3535

36-
public function socketCreateUsesClass(): TrinaryLogic
36+
public function socketCreateReturnsObject(): TrinaryLogic
3737
{
3838
return IntegerRangeType::fromInterval(80000, null)->isSuperTypeOf($this->phpVersions)->result;
3939
}

src/Type/Php/SocketCreateReturnTypeExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public function getTypeFromFunctionCall(FunctionReflection $functionReflection,
2727
return null;
2828
}
2929

30-
if ($scope->getPhpVersion()->socketCreateUsesClass()->yes()) {
30+
if ($scope->getPhpVersion()->socketCreateReturnsObject()->yes()) {
3131
return new UnionType([new ConstantBooleanType(false), new ObjectType('\\Socket')]);
3232
}
3333

34-
if ($scope->getPhpVersion()->socketCreateUsesClass()->no()) {
34+
if ($scope->getPhpVersion()->socketCreateReturnsObject()->no()) {
3535
return new UnionType([new ConstantBooleanType(false), new ResourceType()]);
3636
}
3737

0 commit comments

Comments
 (0)