Commit d8a673a
committed
bug symfony#60961 [TypeInfo] Fix
This PR was merged into the 7.3 branch.
Discussion
----------
[TypeInfo] Fix `Type::fromValue` with empty array
| Q | A
| ------------- | ---
| Branch? | 7.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix #...
| License | MIT
Without this, it fails with `Symfony\Component\TypeInfo\Exception\InvalidArgumentException: "int|string" is not a valid list key type.`
Commits
-------
cfcf666 [TypeInfo] Fix `Type::fromValue` with empty arrayType::fromValue with empty array (norkunas)File tree
2 files changed
+2
-1
lines changed- src/Symfony/Component/TypeInfo
- Tests
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| |||
0 commit comments