From 035bfabedb7a8bf33eb0ff480c25eed348fbca23 Mon Sep 17 00:00:00 2001 From: Erayd Date: Wed, 8 Mar 2017 12:55:55 +1300 Subject: [PATCH] Add use line for InvalidArgumentException & adjust scope Fixes issue #371 --- src/JsonSchema/Entity/JsonPointer.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/JsonSchema/Entity/JsonPointer.php b/src/JsonSchema/Entity/JsonPointer.php index 31c753ba..8bb71ecf 100644 --- a/src/JsonSchema/Entity/JsonPointer.php +++ b/src/JsonSchema/Entity/JsonPointer.php @@ -9,6 +9,8 @@ namespace JsonSchema\Entity; +use JsonSchema\Exception\InvalidArgumentException; + /** * @package JsonSchema\Entity * @@ -25,12 +27,12 @@ class JsonPointer /** * @param string $value * - * @throws \InvalidArgumentException when $value is not a string + * @throws InvalidArgumentException when $value is not a string */ public function __construct($value) { if (!is_string($value)) { - throw new \InvalidArgumentException('Ref value must be a string'); + throw new InvalidArgumentException('Ref value must be a string'); } $splitRef = explode('#', $value, 2);