8000 fix tests · symfony/symfony@6faae75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6faae75

Browse files
committed
fix tests
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 0d46efc commit 6faae75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function getTypes(string $class, string $property, array $context = [])
166166
case Type::BUILTIN_TYPE_ARRAY:
167167
switch ($typeOfField) {
168168
case Types::ARRAY:
169-
case Types::JSON_ARRAY:
169+
case 'json_array':
170170
return [new Type(Type::BUILTIN_TYPE_ARRAY, $nullable, null, true)];
171171

172172
case Types::SIMPLE_ARRAY:
@@ -280,7 +280,7 @@ private function getPhpType(string $doctrineType): ?string
280280

281281
case Types::ARRAY:
282282
case Types::SIMPLE_ARRAY:
283-
case Types::JSON_ARRAY:
283+
case 'json_array':
284284
return Type::BUILTIN_TYPE_ARRAY;
285285
}
286286

0 commit comments

Comments
 (0)
0