Skip to content

Commit 6c99d25

Browse files
Merge branch '3.4' into 4.4
* 3.4: [Config] fix test [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 1b45647 + e818172 commit 6c99d25

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
@@ -175,7 +175,6 @@ public function getTypes($class, $property, array $context = [])
175175
switch ($typeOfField) {
176176
case self::$useDeprecatedConstants ? DBALType::TARRAY : Types::ARRAY:
177177
case 'json_array':
178-
case self::$useDeprecatedConstants ? false : Types::JSON:
179178
return [new Type(Type::BUILTIN_TYPE_ARRAY, $nullable, null, true)];
180179

181180
case self::$useDeprecatedConstants ? DBALType::SIMPLE_ARRAY : Types::SIMPLE_ARRAY:
@@ -290,7 +289,6 @@ private function getPhpType(string $doctrineType): ?string
290289
case self::$useDeprecatedConstants ? DBALType::TARRAY : Types::ARRAY:
291290
case self::$useDeprecatedConstants ? DBALType::SIMPLE_ARRAY : Types::SIMPLE_ARRAY:
292291
case 'json_array':
293-
case self::$useDeprecatedConstants ? false : Types::JSON:
294292
return Type::BUILTIN_TYPE_ARRAY;
295293
}
296294

Tests/PropertyInfo/DoctrineExtractorTest.php

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

223223
if (class_exists(Types::class)) {
224-
$provider[] = ['json', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)]];
224+
$provider[] = ['json', null];
225225
}
226226

227227
return $provider;

0 commit comments

Comments
 (0)