Skip to content

Commit c57f555

Browse files
committed
fix
1 parent 0a4c143 commit c57f555

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
@@ -28,7 +28,7 @@ public function producesWarningForFinalPrivateMethods(): TrinaryLogic
2828
return IntegerRangeType::fromInterval(80000, null)->isSuperTypeOf($this->phpVersions)->result;
2929
}
3030

31-
public function socketCreateUsesClass(): TrinaryLogic
31+
public function socketCreateReturnsObject(): TrinaryLogic
3232
{
3333
return IntegerRangeType::fromInterval(80000, null)->isSuperTypeOf($this->phpVersions)->result;
3434
}

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)