Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a1e22dc

Browse filesBrowse files
committed
Revert "[DoctrineBridge] add support for the JSON type"
This reverts commit 1e218c5.
1 parent be6cf3b commit a1e22dc
Copy full SHA for a1e22dc

File tree

Expand file treeCollapse file tree

2 files changed

+2
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ public function getTypes($class, $property, array $context = [])
189189
case self::$useDeprecatedConstants ? DBALType::TARRAY : Types::ARRAY:
190190
// no break
191191
case 'json_array':
192-
case 'json':
193192
return [new Type(Type::BUILTIN_TYPE_ARRAY, $nullable, null, true)];
194193

195194
case self::$useDeprecatedConstants ? DBALType::SIMPLE_ARRAY : Types::SIMPLE_ARRAY:
@@ -317,7 +316,6 @@ private function getPhpType(string $doctrineType): ?string
317316
case self::$useDeprecatedConstants ? DBALType::SIMPLE_ARRAY : Types::SIMPLE_ARRAY:
318317
// no break
319318
case 'json_array':
320-
case 'json':
321319
return Type::BUILTIN_TYPE_ARRAY;
322320
}
323321

‎src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,11 @@ public function typesProvider()
254254
new Type(Type::BUILTIN_TYPE_INT),
255255
new Type(Type::BUILTIN_TYPE_OBJECT, false, DoctrineRelation::class)
256256
)]],
257-
['json', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)]],
257+
['json', null],
258258
];
259259

260260
if (class_exists(Types::class)) {
261-
$provider[] = ['json', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)]];
261+
$provider[] = ['json', null];
262262
}
263263

264264
return $provider;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.