Skip to content

Commit e1526f5

Browse files
authored
Update type hints, fixes #73
1 parent 7e28add commit e1526f5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/Seld/JsonLint/DuplicateKeyException.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
class DuplicateKeyException extends ParsingException
1515
{
16+
/**
17+
* @param string $message
18+
* @psalm-param array{text?: string, token?: string, line?: int, loc?: array{first_line: int, first_column: int, last_line: int, last_column: int}, expected?: string[]} $details
19+
*/
1620
public function __construct($message, $key, array $details = array())
1721
{
1822
$details['key'] = $key;
@@ -23,4 +27,12 @@ public function getKey()
2327
{
2428
return $this->details['key'];
2529
}
30+
31+
/**
32+
* @psalm-return array{text?: string, token?: string, line?: int, loc?: array{first_line: int, first_column: int, last_line: int, last_column: int}, expected?: string[], key: string}
33+
*/
34+
public function getDetails()
35+
{
36+
return $this->details;
37+
}
2638
}

0 commit comments

Comments
 (0)