Skip to content

Commit 8e20159

Browse files
committed
Add use line for InvalidArgumentException & adjust scope (jsonrainbow#372)
Fixes issue jsonrainbow#371
1 parent 0bb66d3 commit 8e20159

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/JsonSchema/Entity/JsonPointer.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
namespace JsonSchema\Entity;
1111

12+
use JsonSchema\Exception\InvalidArgumentException;
13+
1214
/**
1315
* @package JsonSchema\Entity
1416
*
@@ -25,12 +27,12 @@ class JsonPointer
2527
/**
2628
* @param string $value
2729
*
28-
* @throws \InvalidArgumentException when $value is not a string
30+
* @throws InvalidArgumentException when $value is not a string
2931
*/
3032
public function __construct($value)
3133
{
3234
if (!is_string($value)) {
33-
throw new \InvalidArgumentException('Ref value must be a string');
35+
throw new InvalidArgumentException('Ref value must be a string');
3436
}
3537

3638
$splitRef = explode('#', $value, 2);

0 commit comments

Comments
 (0)