Commit f020876
committed
bug #35987 [DoctrineBridge][DoctrineExtractor] Fix wrong guessed type for "json" type (fancyweb)
This PR was merged into the 3.4 branch.
Discussion
----------
[DoctrineBridge][DoctrineExtractor] Fix wrong guessed type for "json" type
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | #35968
| License | MIT
| Doc PR | -
After checking the code, it appears that `json` have a different behavior than `json_array`.
> In json_array doctrine was converting null or empty value to array, but json type doesn't do that
@norkunas is right about this. Consequently, we cannot safely guess a built in type for the `json` Doctrine type.
Commits
-------
f9f5f8d [DoctrineBridge][DoctrineExtractor] Fix wrong guessed type for "json" type2 files changed
+1-3Lines changed: 1 addition & 3 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/Symfony/Bridge/Doctrine
- PropertyInfo
- Tests/PropertyInfo
Expand file treeCollapse file tree
Open diff view settings
Collapse file
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 number | Diff line number | Diff line change |
|---|---|---|
| ||
178 | 178 | |
179 | 179 | |
180 | 180 | |
181 | | - |
182 | 181 | |
183 | 182 | |
184 | 183 | |
| ||
266 | 265 | |
267 | 266 | |
268 | 267 | |
269 | | - |
270 | 268 | |
271 | 269 | |
272 | 270 | |
|
Collapse file
src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
182 | 182 | |
183 | 183 | |
184 | 184 | |
185 | | - |
| 185 | + |
186 | 186 | |
187 | 187 | |
188 | 188 | |
|
0 commit comments