Make WordPress Core

Changeset 62657


Ignore:
Timestamp:
07/07/2026 05:09:26 PM (6 weeks ago)
Author:
westonruter
Message:

Build/Test Tools: Exclude load-scripts.php/load-styles.php from PHPStan analysis.

These files may emit “Function get_file not found.” errors after a non-dev build. Both of these files use the get_file() function which is located in the already-excluded noop.php.

Props afercia, desrosj, westonruter.
See #64898, #57548.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpstan/base.neon

    r62292 r62657  
    115115                        - ../../src/wp-includes/ms-deprecated.php
    116116                        - ../../src/wp-includes/pluggable-deprecated.php
     117                        # Script and style concatenation which rely on a get_file() function in noop.php.
     118                        - ../../src/wp-admin/load-scripts.php
     119                        - ../../src/wp-admin/load-styles.php
    117120                        # These files are autogenerated by tools/gutenberg/copy.js.
    118121                        - ../../src/wp-includes/blocks
Note: See TracChangeset for help on using the changeset viewer.