Skip to content

Commit cad75d7

Browse files
authored
[BUGFIX] Correct DocBlock for ParserState::consumeUntil() (#1338)
The special `EOF` constant is actually defined as `null`, so the stop characters may be strings or `null`.
1 parent 9cc6f73 commit cad75d7

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

config/phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ parameters:
1818
count: 1
1919
path: ../src/CSSList/Document.php
2020

21-
-
22-
message: '#^Call to function in_array\(\) with arguments null, list\<string\> and true will always evaluate to false\.$#'
23-
identifier: function.impossibleType
24-
count: 1
25-
path: ../src/Parsing/ParserState.php
26-
2721
-
2822
message: '#^Negated boolean expression is always true\.$#'
2923
identifier: booleanNot.alwaysTrue

src/Parsing/ParserState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public function isEnd(): bool
328328
}
329329

330330
/**
331-
* @param list<string>|string $stopCharacters
331+
* @param list<string|self::EOF>|string|self::EOF $stopCharacters
332332
* @param array<int, Comment> $comments
333333
*
334334
* @throws UnexpectedEOFException

0 commit comments

Comments
 (0)