Skip to content

Commit b00336a

Browse files
committed
Build/Test Tools: Raise the PHPStan rule level to 5.
This rule level includes: > checking types of arguments passed to methods and functions Baselines are regenerated for errors at this level. Developed in #12855. Follow-up to r61699, r63019, r63020, r63021, r63022, r63023. Props westonruter, apermo. See #64680. git-svn-id: https://develop.svn.wordpress.org/trunk@63024 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 79d902a commit b00336a

4 files changed

Lines changed: 1939 additions & 1 deletion

File tree

phpstan.neon.dist

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ includes:
2222
# Regenerate with `composer phpstan:baselines`, which rewrites both the files
2323
# and the list between the markers. Do not edit that list by hand.
2424
# phpstan:baselines start
25+
- tests/phpstan/baselines/argument.type.neon
26+
- tests/phpstan/baselines/argument.unresolvableType.neon
2527
- tests/phpstan/baselines/arguments.count.neon
28+
- tests/phpstan/baselines/arrayValues.list.neon
2629
- tests/phpstan/baselines/assign.propertyType.neon
2730
- tests/phpstan/baselines/binaryOp.invalid.neon
2831
- tests/phpstan/baselines/booleanAnd.alwaysFalse.neon
@@ -97,7 +100,7 @@ includes:
97100

98101
parameters:
99102
# https://phpstan.org/user-guide/rule-levels
100-
level: 4
103+
level: 5
101104
reportUnmatchedIgnoredErrors: true
102105

103106
# The following ignored errors are not intended to be fixed, as distinct from the baselines

0 commit comments

Comments
 (0)