From 99c9f8c4adab40f7e075298b4a1f1cdfbb2d20b4 Mon Sep 17 00:00:00 2001 From: Dalibor Korpar Date: Thu, 24 Sep 2020 10:26:24 +0200 Subject: [PATCH] fix error message when setting prompt and there's item interfering with prompt value --- src/Traits/InputPromptTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/InputPromptTrait.php b/src/Traits/InputPromptTrait.php index 121620f..f10749c 100644 --- a/src/Traits/InputPromptTrait.php +++ b/src/Traits/InputPromptTrait.php @@ -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.' ); }