Skip to content

Commit 94384e8

Browse files
authored
added phpdoc to ParsingException (#70)
* added phpdoc to ParsingException * Update ParsingException.php
1 parent ff2aa54 commit 94384e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Seld/JsonLint/ParsingException.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,19 @@ class ParsingException extends \Exception
1515
{
1616
protected $details;
1717

18+
/**
19+
* @param string $message
20+
* @psalm-param array{text?: string, token?: string, line?: int, loc?: array, expected?: array} $details
21+
*/
1822
public function __construct($message, $details = array())
1923
{
2024
$this->details = $details;
2125
parent::__construct($message);
2226
}
2327

28+
/**
29+
* @psalm-return array{text?: string, token?: string, line?: int, loc?: array, expected?: array}
30+
*/
2431
public function getDetails()
2532
{
2633
return $this->details;

0 commit comments

Comments
 (0)