Skip to content

Commit

Permalink
added phpdoc to ParsingException (#70)
Browse files Browse the repository at this point in the history
* added phpdoc to ParsingException

* Update ParsingException.php
  • Loading branch information
clxmstaab authored Aug 13, 2020
1 parent ff2aa54 commit 94384e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Seld/JsonLint/ParsingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,19 @@ class ParsingException extends \Exception
{
protected $details;

/**
* @param string $message
* @psalm-param array{text?: string, token?: string, line?: int, loc?: array, expected?: array} $details
*/
public function __construct($message, $details = array())
{
$this->details = $details;
parent::__construct($message);
}

/**
* @psalm-return array{text?: string, token?: string, line?: int, loc?: array, expected?: array}
*/
public function getDetails()
{
return $this->details;
Expand Down

0 comments on commit 94384e8

Please sign in to comment.