Skip to content

Releases: utopia-php/cli

0.23.2

27 Apr 09:20
145b91f

Choose a tag to compare

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

0.23.1

05 Apr 15:27
8d1955b

Choose a tag to compare

What's Changed

Full Changelog: 0.23.0...0.23.1

0.23.0

13 Mar 12:24
4efef26

Choose a tag to compare

What's Changed

Full Changelog: 0.22.0...0.23.0

0.15.4

06 Feb 09:49
cc87354

Choose a tag to compare

0.15.4 Pre-release
Pre-release

What's Changed

Full Changelog: 0.15.2...0.15.4

0.22.0

21 Oct 10:49
a7ac387

Choose a tag to compare

What's Changed

Full Changelog: 0.21.0...0.22.0

0.21.0

21 Oct 08:03
0cfa4d7

Choose a tag to compare

What's Changed

Full Changelog: 0.15.3...0.21.0

0.15.3

25 Apr 14:14
e41c8d0

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.20.0...0.15.3

0.15.2

15 Apr 10:10
da00ff6

Choose a tag to compare

0.15.2 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.15.1...0.15.2

0.15.1

04 Oct 13:56
d69bbe5

Choose a tag to compare

0.15.1 Pre-release
Pre-release

What's Changed

Full Changelog: 0.15.0...0.15.1

0.20.0

23 Sep 21:26
70877c9

Choose a tag to compare

0.20.0 Pre-release
Pre-release

What's Changed

  • feat: support array-based commands in execute to avoid allocating subshell by @basert in #40

New Contributors

Full Changelog: 0.19.0...0.20.0