Skip to content

Commit

Permalink
[TASK] Raise PHPStan to level 10
Browse files Browse the repository at this point in the history
Level 10 is PHPStan's "up to 11", which was introduced
in PHPStan 2.

https://en.wikipedia.org/wiki/Up_to_eleven
  • Loading branch information
oliverklee committed Feb 16, 2025
1 parent b832d8e commit b94d90a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions config/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ parameters:
count: 1
path: ../src/CssInliner.php

-
message: '#^Parameter \#1 \$matches of method Pelago\\Emogrifier\\CssInliner\:\:replaceUnmatchableNotComponent\(\) expects array\<string\>, array given\.$#'
identifier: argument.type
count: 1
path: ../src/CssInliner.php

-
message: '#^Parameter \#1 \$name of method Pelago\\Emogrifier\\Utilities\\DeclarationBlockParser\:\:normalizePropertyName\(\) expects non\-empty\-string, mixed given\.$#'
identifier: argument.type
count: 1
path: ../src/CssInliner.php

-
message: '#^Parameter \#1 \$html of method Pelago\\Emogrifier\\HtmlProcessor\\AbstractHtmlProcessor\:\:removeSelfClosingTagsClosingTags\(\) expects string, string\|false given\.$#'
identifier: argument.type
Expand Down Expand Up @@ -162,6 +174,12 @@ parameters:
count: 1
path: ../src/Utilities/Preg.php

-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
count: 1
path: ../tests/Support/Constraint/CssConstraint.php

-
message: '''
#^@dataProvider provideInvalidAtCharsetRuleWhichCausesException
Expand Down
2 changes: 1 addition & 1 deletion config/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ includes:
- phpstan-baseline.neon

parameters:
level: 9
level: 10

paths:
- %currentWorkingDirectory%/src/
Expand Down

0 comments on commit b94d90a

Please # to comment.