Skip to content

Commit f6bd882

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@62657 602fd350-edb4-49c9-b593-d223f7449a82
1 parent cdb2bff commit f6bd882

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/phpstan/base.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ parameters:
114114
- ../../src/wp-includes/deprecated.php
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
119122
# Third-party libraries.

0 commit comments

Comments
 (0)