Skip to content

Commit 8664d33

Browse files
committed
Fix phpstan
1 parent ccb670a commit 8664d33

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Seld/JsonLint/JsonParser.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class JsonParser
3636

3737
/**
3838
* @var int
39-
* @psalm-var int-mask-of<self::*>
39+
* @phpstan-var int-mask-of<self::*>
4040
*/
4141
private $flags;
4242
/** @var list<int> */
@@ -177,6 +177,8 @@ class JsonParser
177177
* @param string $input JSON string
178178
* @param int $flags Bitmask of parse/lint options (see constants of this class)
179179
* @return null|ParsingException null if no error is found, a ParsingException containing all details otherwise
180+
*
181+
* @phpstan-param int-mask-of<self::*> $flags
180182
*/
181183
public function lint($input, $flags = 0)
182184
{
@@ -193,6 +195,8 @@ public function lint($input, $flags = 0)
193195
* @param int $flags Bitmask of parse/lint options (see constants of this class)
194196
* @return mixed
195197
* @throws ParsingException
198+
*
199+
* @phpstan-param int-mask-of<self::*> $flags
196200
*/
197201
public function parse($input, $flags = 0)
198202
{

0 commit comments

Comments
 (0)