Skip to content

Commit

Permalink
Add use line for InvalidArgumentException & adjust scope (jsonrainbow…
Browse files Browse the repository at this point in the history
  • Loading branch information
erayd committed Mar 22, 2017
1 parent 0bb66d3 commit 8e20159
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/JsonSchema/Entity/JsonPointer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

namespace JsonSchema\Entity;

use JsonSchema\Exception\InvalidArgumentException;

/**
* @package JsonSchema\Entity
*
Expand All @@ -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);
Expand Down

0 comments on commit 8e20159

Please sign in to comment.