Simplify phpstan-doc type hint for better readability

This commit is contained in:
IvanCraft623 2024-08-05 17:13:23 -05:00
parent d0d7a995fb
commit 2aa64dc15e
No known key found for this signature in database
GPG Key ID: 9072B981250FBFE5
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ final class BlockStateUpgradeSchemaFlattenedName{
/**
* @param string[] $flattenedValueRemaps
* @phpstan-param array<string, string> $flattenedValueRemaps
* @phpstan-param class-string<ByteTag>|class-string<IntTag>|class-string<StringTag>|null $flattenedPropertyType
* @phpstan-param ?class-string<ByteTag|IntTag|StringTag> $flattenedPropertyType
*/
public function __construct(
public string $prefix,

View File

@ -318,7 +318,7 @@ function findCommonSuffix(array $strings) : string{
* @param string[][][] $candidateFlattenedValues
* @phpstan-param array<string, array<string, array<string, string>>> $candidateFlattenedValues
* @param string[] $candidateFlattenPropertyTypes
* @phpstan-param array<string, class-string<ByteTag>|class-string<IntTag>|class-string<StringTag>> $candidateFlattenPropertyTypes
* @phpstan-param array<string, class-string<ByteTag|IntTag|StringTag>> $candidateFlattenPropertyTypes
*
* @return BlockStateUpgradeSchemaFlattenedName[][]
* @phpstan-return array<string, array<string, BlockStateUpgradeSchemaFlattenedName>>