Make WordPress Core

Changeset 63024


Ignore:
Timestamp:
08/05/2026 08:37:55 AM (2 days ago)
Author:
westonruter
Message:

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 https://github.com/WordPress/wordpress-develop/pull/12855.
Follow-up to r61699, r63019, r63020, r63021, r63022, r63023.

Props westonruter, apermo.
See #64680.

Location:
trunk
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpstan.neon.dist

    r63023 r63024  
    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
     
    98101parameters:
    99102        # https://phpstan.org/user-guide/rule-levels
    100         level: 4
     103        level: 5
    101104        reportUnmatchedIgnoredErrors: true
    102105
Note: See TracChangeset for help on using the changeset viewer.