Skip to content

Commit

Permalink
use @phpstan- prefix instead of @psalm- (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab committed Aug 25, 2020
1 parent 1615507 commit 590cfec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Seld/JsonLint/DuplicateKeyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class DuplicateKeyException extends ParsingException
/**
* @param string $message
* @param string $key
* @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
* @phpstan-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
*/
public function __construct($message, $key, array $details = array())
{
Expand All @@ -30,7 +30,7 @@ public function getKey()
}

/**
* @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}
* @phpstan-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}
*/
public function getDetails()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Seld/JsonLint/ParsingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ParsingException extends \Exception

/**
* @param string $message
* @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
* @phpstan-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
*/
public function __construct($message, $details = array())
{
Expand All @@ -26,7 +26,7 @@ public function __construct($message, $details = array())
}

/**
* @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[]}
* @phpstan-return array{text?: string, token?: string, line?: int, loc?: array{first_line: int, first_column: int, last_line: int, last_column: int}, expected?: string[]}
*/
public function getDetails()
{
Expand Down

0 comments on commit 590cfec

Please sign in to comment.