Releases: utopia-php/cli
Releases · utopia-php/cli
0.23.2
What's Changed
- fix: coerce string CLI inputs for
Booleanparams by @ChiragAgg5k in #52
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
boolvalues 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
0.23.1
What's Changed
- feat: allow cli container injection by @ChiragAgg5k in #51
Full Changelog: 0.23.0...0.23.1
0.23.0
What's Changed
- chore: update utopia-php/servers from 0.2 to 0.3 by @ChiragAgg5k in #50
Full Changelog: 0.22.0...0.23.0
0.15.4
What's Changed
- Fix nullable type for Console::loop onError by @ChiragAgg5k in #48
Full Changelog: 0.15.2...0.15.4
0.22.0
0.21.0
0.15.3
0.15.2
What's Changed
- chore: update run method to catch throwable by @ChiragAgg5k in #44
New Contributors
- @ChiragAgg5k made their first contribution in #44
Full Changelog: 0.15.1...0.15.2