From 590cfec960b77fd55e39b7d9246659e95dd6d337 Mon Sep 17 00:00:00 2001 From: Markus Staab <47448731+clxmstaab@users.noreply.github.com> Date: Tue, 25 Aug 2020 08:56:57 +0200 Subject: [PATCH] use @phpstan- prefix instead of @psalm- (#74) --- src/Seld/JsonLint/DuplicateKeyException.php | 4 ++-- src/Seld/JsonLint/ParsingException.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Seld/JsonLint/DuplicateKeyException.php b/src/Seld/JsonLint/DuplicateKeyException.php index f73cfa7..2783323 100644 --- a/src/Seld/JsonLint/DuplicateKeyException.php +++ b/src/Seld/JsonLint/DuplicateKeyException.php @@ -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()) { @@ -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() { diff --git a/src/Seld/JsonLint/ParsingException.php b/src/Seld/JsonLint/ParsingException.php index 98dd3d6..ce2964f 100644 --- a/src/Seld/JsonLint/ParsingException.php +++ b/src/Seld/JsonLint/ParsingException.php @@ -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()) { @@ -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() {