Skip to content

Commit

Permalink
use ->isArray()->yes() on ArrayTypeMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Nov 12, 2024
1 parent ca20a56 commit c128c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPStanStaticTypeMapper/TypeMapper/ArrayTypeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private function isIntegerKeyAndNonNestedArray(ArrayType $arrayType): bool
return false;
}

return ! $arrayType->getItemType() instanceof ArrayType;
return ! $arrayType->getItemType()->isArray()->yes();
}

private function isClassStringArrayType(ArrayType $arrayType): bool
Expand Down

0 comments on commit c128c96

Please sign in to comment.