mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Making null check explicit so falsey default values can be used. Fixes #695
This commit is contained in:
parent
1ec220dac2
commit
91a40a0104
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ class ShellDispatcher {
|
|||
$printOptions = '(' . implode('/', $options) . ')';
|
||||
}
|
||||
|
||||
if ($default == null) {
|
||||
if ($default === null) {
|
||||
$this->stdout($prompt . " $printOptions \n" . '> ', false);
|
||||
} else {
|
||||
$this->stdout($prompt . " $printOptions \n" . "[$default] > ", false);
|
||||
|
|
Loading…
Reference in a new issue