Skip to content

Commit 33553bf

Browse files
Merge branch '4.4' into 5.0
* 4.4: [Config] fix test [HttpClient] disable debug log with curl 7.64.0 [Intl][3.4] Bump ICU 66.1 fix import from config file using type: glob [DoctrineBridge][DoctrineExtractor] Fix wrong guessed type for "json" type
2 parents 671f9af + 6c99d25 commit 33553bf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

PropertyInfo/DoctrineExtractor.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ public function getTypes(string $class, string $property, array $context = [])
163163
switch ($typeOfField) {
164164
case self::$useDeprecatedConstants ? DBALType::TARRAY : Types::ARRAY:
165165
case 'json_array':
166-
case self::$useDeprecatedConstants ? false : Types::JSON:
167166
return [new Type(Type::BUILTIN_TYPE_ARRAY, $nullable, null, true)];
168167

169168
case self::$useDeprecatedConstants ? DBALType::SIMPLE_ARRAY : Types::SIMPLE_ARRAY:
@@ -278,7 +277,6 @@ private function getPhpType(string $doctrineType): ?string
278277
case self::$useDeprecatedConstants ? DBALType::TARRAY : Types::ARRAY:
279278
case self::$useDeprecatedConstants ? DBALType::SIMPLE_ARRAY : Types::SIMPLE_ARRAY:
280279
case 'json_array':
281-
case self::$useDeprecatedConstants ? false : Types::JSON:
282280
return Type::BUILTIN_TYPE_ARRAY;
283281
}
284282

Tests/PropertyInfo/DoctrineExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function typesProvider()
178178
];
179179

180180
if (class_exists(Types::class)) {
181-
$provider[] = ['json', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)]];
181+
$provider[] = ['json', null];
182182
}
183183

184184
return $provider;

0 commit comments

Comments
 (0)