Make WordPress Core

Changeset 64163

Timestamp:
10/06/2026 05:00:29 PM (5 weeks ago)
Author:
swissspidy
Message:

Docs: Narrow unused deprecated parameters in PHPStan types.

This adds @phpstan-param tags that narrow unused, deprecated parameters to the literal value of their default, so that static analysis flags callers which still pass something else. The types come from php-stubs/wordpress-stubs. wp_get_typography_font_size_value() narrows $settings to array, since passing a boolean was deprecated in 6.6.0.

validate_email() also stops passing its $check_domain argument to is_email(), where it is deprecated and triggered a second deprecation notice.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/13889

Follow-up to r64045.

Props marian1, swissspidy, westonruter.
See #65817.

Location:
trunk/src
Files:
29 edited

Changeset view not shown, since the total size (5.0 MB) exceeds 4.0 MB

Note: See TracChangeset for help on using the changeset viewer.