Skip to content

Commit 0e9b70f

Browse files
Merge branch '7.4' into 8.0
* 7.4: [TypeInfo] Add space after glue comma Remove obsolete code for solved Psalm issue in workflow [HttpKernel] #[MapUploadedFile] throws http exception on empty files array if argument not nullable nor has default value [Mailer] Add compatibility for Mailtrap's sandbox [Serializer] Replace Japan timezone with Asia/Tokyo [Config] Reduce the size of serialized resource checkers
2 parents cbab7d4 + 650abf5 commit 0e9b70f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Tests/Type/CollectionTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testToString()
8686
$this->assertEquals('array<bool>', (string) $type);
8787

8888
$type = new CollectionType(new GenericType(Type::builtin(TypeIdentifier::ARRAY), Type::string(), Type::bool()));
89-
$this->assertEquals('array<string,bool>', (string) $type);
89+
$this->assertEquals('array<string, bool>', (string) $type);
9090

9191
$type = new CollectionType(Type::generic(Type::builtin(TypeIdentifier::ARRAY), Type::bool()), isList: true);
9292
$this->assertEquals('list<bool>', (string) $type);

Tests/Type/GenericTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ public function testToString()
3131
$this->assertEquals('array<bool>', (string) $type);
3232

3333
$type = new GenericType(Type::builtin(TypeIdentifier::ARRAY), Type::string(), Type::bool());
34-
$this->assertEquals('array<string,bool>', (string) $type);
34+
$this->assertEquals('array<string, bool>', (string) $type);
3535

3636
$type = new GenericType(Type::object(self::class), Type::union(Type::bool(), Type::string()), Type::int(), Type::float());
37-
$this->assertEquals(\sprintf('%s<bool|string,int,float>', self::class), (string) $type);
37+
$this->assertEquals(\sprintf('%s<bool|string, int, float>', self::class), (string) $type);
3838
}
3939

4040
public function testWrappedTypeIsSatisfiedBy()

Type/GenericType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __toString(): string
7272
$glue = '';
7373
foreach ($this->variableTypes as $t) {
7474
$variableTypesString .= $glue.$t;
75-
$glue = ',';
75+
$glue = ', ';
7676
}
7777

7878
return $typeString.'<'.$variableTypesString.'>';

TypeFactoryTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static function object(?string $className = null): BuiltinType|ObjectType
236236
* @param T $className
237237
* @param U|null $backingType
238238
*
239-
* @return ($className is class-string<\BackedEnum> ? ($backingType is U ? BackedEnumType<T,U> : BackedEnumType<T,BuiltinType<TypeIdentifier::INT>|BuiltinType<TypeIdentifier::STRING>>) : EnumType<T>))
239+
* @return ($className is class-string<\BackedEnum> ? ($backingType is U ? BackedEnumType<T, U> : BackedEnumType<T, BuiltinType<TypeIdentifier::INT>|BuiltinType<TypeIdentifier::STRING>>) : EnumType<T>))
240240
*/
241241
public static function enum(string $className, ?BuiltinType $backingType = null): EnumType
242242
{

0 commit comments

Comments
 (0)