Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #37327 [HttpFoundation] Allow
null
in InputBag@set (taylorotwell)
This PR was squashed before being merged into the 5.1 branch (closes #37327). Discussion ---------- [HttpFoundation] Allow `null` in InputBag@set This allows `null` to be passed to InputBag's `set` method. | Q | A | ------------- | --- | Branch? | 5.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT Previously, `null` was an allowed value to the InputBag's `set` method. At some point this was deprecated. It would be very nice for us to be able to set this to `null`. For example, this ability drives a very popular feature of Laravel where we ship a middleware that converts all empty strings to `null` on incoming requests. Note that the `get` method already specifically allows `null` and `null` is a valid decoded JSON value. Commits ------- 14ec6a7 [HttpFoundation] Allow `null` in InputBag@set
- Loading branch information