Skip to content

chore: Token - add @phpstan-assert-if-true#8865

Merged
kubawerlos merged 3 commits intoPHP-CS-Fixer:masterfrom
gharlan:token-assert
Jul 20, 2025
Merged

chore: Token - add @phpstan-assert-if-true#8865
kubawerlos merged 3 commits intoPHP-CS-Fixer:masterfrom
gharlan:token-assert

Conversation

@gharlan
Copy link
Copy Markdown
Member

@gharlan gharlan commented Jul 20, 2025

No description provided.

];
$ignoreErrors[] = [
'message' => '#^Method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:findGivenKind\\(\\) should return array\\<int, array\\<int\\<0, max\\>, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|PhpCsFixer\\\\Tokenizer\\\\Token\\> but returns array\\<\'\'\\|int, array\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|PhpCsFixer\\\\Tokenizer\\\\Token\\>\\.$#',
'message' => '#^Method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:findGivenKind\\(\\) should return array\\<int, array\\<int\\<0, max\\>, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|PhpCsFixer\\\\Tokenizer\\\\Token\\> but returns array\\<int, array\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|PhpCsFixer\\\\Tokenizer\\\\Token\\>\\.$#',
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not remove any error from baseline, but some errors are simplified and less weird.
(So it removes one of the problems of these errors)

@coveralls
Copy link
Copy Markdown

coveralls commented Jul 20, 2025

Coverage Status

coverage: 94.745% (-0.01%) from 94.755%
when pulling fda87ec on gharlan:token-assert
into 980cf99 on PHP-CS-Fixer:master.

@kubawerlos kubawerlos merged commit 6a364cb into PHP-CS-Fixer:master Jul 20, 2025
32 checks passed
@gharlan gharlan deleted the token-assert branch July 20, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants