Commit 33f70b7
committed
bug symfony#59818 [TypeInfo] Fix create union with nullable type (mtarld)
This PR was merged into the 7.2 branch.
Discussion
----------
[TypeInfo] Fix create union with nullable type
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
Fix the creation of a union type with a nullable type, such as
```php
Type::union(Type::nullable(Type::int()), Type::string());
// it will be handled the same as:
Type::nullable(Type::int(), Type::string())
Type::union(Type::int(), Type::string(), Type::null())
```
Commits
-------
a5f779c [TypeInfo] Fix create union with nullable typeFile tree
2 files changed
+11
-0
lines changed- src/Symfony/Component/TypeInfo
- Tests
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
208 | 212 | | |
209 | 213 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
269 | 276 | | |
270 | 277 | | |
271 | 278 | | |
| |||
0 commit comments