From 8765657975d6da64ccef6f7331311e8cc8804d0f Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Wed, 3 Jan 2018 15:18:45 +0800 Subject: [PATCH] CallValidator. --- src/Validators/CallValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validators/CallValidator.php b/src/Validators/CallValidator.php index f7a83e4..aed5f6c 100644 --- a/src/Validators/CallValidator.php +++ b/src/Validators/CallValidator.php @@ -29,7 +29,7 @@ class CallValidator if (!is_array($value)) { return false; } - if (isset($value['from']) && AddressValidator::validate($value['from']) === false) { + if (isset($value['from']) && AddressValidator::validate($value['from']) === false && $value['from'] !== '') { return false; } if (!isset($value['to'])) {