mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Testing option value as a string
This commit is contained in:
parent
80773ad970
commit
693ca5481e
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ class ConsoleOptionParser {
|
|||
$option = $this->_options[$name];
|
||||
$isBoolean = $option->isBoolean();
|
||||
$nextValue = $this->_nextToken();
|
||||
$emptyNextValue = (empty($nextValue) && $nextValue != 0);
|
||||
$emptyNextValue = (empty($nextValue) && $nextValue !== '0');
|
||||
if (!$isBoolean && !$emptyNextValue && !$this->_optionExists($nextValue)) {
|
||||
array_shift($this->_tokens);
|
||||
$value = $nextValue;
|
||||
|
|
Loading…
Reference in a new issue