Skip to content

0.23.2

Choose a tag to compare

@ChiragAgg5k ChiragAgg5k released this 27 Apr 09:20
· 6 commits to master since this release
145b91f

What's Changed

Background

--commit=false (and other string inputs to a Boolean param) used to silently arrive at the action callback as PHP true because of implicit string-to-bool casting at the bool typehint boundary. The CLI dispatcher now coerces the validated string to a real PHP bool via filter_var, so callbacks receive what the validator says they should.

Compatibility

  • Callbacks that already pass real bool values are unaffected.
  • Callbacks that compare against literal strings like === 'false' will need to be updated — but those callers were almost certainly mishandling the validator's contract already.
  • Empty-string defaults (e.g. ->param('commit', '', new Boolean(true), …, true) used as a three-state sentinel) are preserved and continue to arrive as ''.

Full Changelog: 0.23.1...0.23.2