From bf7515f4c5d02ce9919a92a27812af7587a4700e Mon Sep 17 00:00:00 2001 From: Dustin Wilson Date: Thu, 21 Oct 2021 09:20:02 -0500 Subject: [PATCH] Changed CLOSURE_RETURN_TYPE_ERROR to RETURN_TYPE_ERROR in Exception --- lib/Exception.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Exception.php b/lib/Exception.php index 29b659c..e8d2d10 100644 --- a/lib/Exception.php +++ b/lib/Exception.php @@ -18,7 +18,7 @@ class Exception extends \Exception { const READONLY_PROPERTY = 202; const ARGUMENT_TYPE_ERROR = 203; const UNDEFINED_METHOD = 204; - const CLOSURE_RETURN_TYPE_ERROR = 205; + const RETURN_TYPE_ERROR = 205; protected static $messages = [ @@ -31,7 +31,7 @@ class Exception extends \Exception { 202 => 'Cannot write readonly property %s', 203 => 'Argument #%s ($%s) must be of type %s, %s given', 204 => 'Call to undefined method %s::%s()', - 205 => 'Closure must return type %s, %s given' + 205 => 'Function should return type %s, %s given' ]; public function __construct(int $code, ...$args) {