Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 20, 2024
1 parent 8d4b2c4 commit 21875df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TypeAnalyzer/CollectionTypeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function resolveFromTypeNode(TypeNode $typeNode, Node $node): ?FullyQuali
return null;
}

public function hasIndexBy(Property|Param $property)
public function hasIndexBy(Property|Param $property): bool
{
$phpDocInfo = $this->phpDocInfoFactory->createFromNode($property);
if ($phpDocInfo instanceof PhpDocInfo && str_contains((string) $phpDocInfo->getPhpDocNode(), 'indexBy')) {
Expand Down

0 comments on commit 21875df

Please sign in to comment.