From 7f1923884d49ed2ff07b53db4c95d2797456722d Mon Sep 17 00:00:00 2001 From: Remzi Kocak Date: Thu, 27 Jul 2023 18:45:34 +0300 Subject: [PATCH] Improve Error message --- src/Types.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Types.php b/src/Types.php index c92af2a..6a8291b 100644 --- a/src/Types.php +++ b/src/Types.php @@ -48,7 +48,7 @@ public function has(string $name): bool public function get(string $name): Type { if (! $this->has($name)) { - throw new InvalidArgumentException('Option type does not exist!'); + throw new InvalidArgumentException("Option type [{$name}] does not exist."); } return $this->types[trim($name)];