Skip to content

Commit

Permalink
fix error message when setting prompt and there's item interfering wi…
Browse files Browse the repository at this point in the history
…th prompt value
  • Loading branch information
dakorpar committed Sep 24, 2020
1 parent a34b766 commit 99c9f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/InputPromptTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function setPrompt($prompt)
$keys = array_keys($this->items);
if (in_array('', $keys, true) || in_array(null, $keys, true)) {
throw new InvalidArgumentException(
'There is an item whose value == null (non-strict comparison).' .
'There is an item whose value === "" or null .' .
'Setting prompt would interfere with this value.'
);
}
Expand Down

0 comments on commit 99c9f8c

Please sign in to comment.