Make WordPress Core


Ignore:
Timestamp:
09/07/2026 12:10:14 AM (34 hours ago)
Author:
westonruter
Message:

Build/Test Tools: Update PHPStan to 2.2.13.

Recent PHPStan releases bring substantial performance improvements. The baselines are regenerated for the new version.

The docblock of _wp_die_process_input() is also corrected to admit the integer message that wp_die() accepts for the legacy Ajax responses, which the helper passes through untouched. This removes a baseline entry for a guard in _default_wp_die_handler() that the incomplete type made look unreachable.

Developed in https://github.com/WordPress/wordpress-develop/pull/13410.
Follow-up to r44666, r53144, r62703, r62798.

Props markusstaab, westonruter.
See #65817.
Fixes #66051.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpstan/baselines/argument.type.neon

    r63461 r63510  
    775775                        path: ../../../src/wp-includes/class-wp-embed.php
    776776                -
     777                        message: '#^Parameter \#1 \$handle of function curl_getinfo expects resource, \(resource\|false\) given\.$#'
     778                        identifier: argument.type
     779                        count: 2
     780                        path: ../../../src/wp-includes/class-wp-http-curl.php
     781                -
    777782                        message: '#^Parameter \#3 \$value of function curl_setopt expects int, string given\.$#'
    778783                        identifier: argument.type
     
    929934                        count: 1
    930935                        path: ../../../src/wp-includes/formatting.php
     936                -
     937                        message: '#^Parameter \#1 \$finfo of function finfo_file expects resource, resource\|false given\.$#'
     938                        identifier: argument.type
     939                        count: 2
     940                        path: ../../../src/wp-includes/functions.php
    931941                -
    932942                        message: '#^Parameter \#1 \$prefix of function uniqid expects string, int\<0, max\> given\.$#'
Note: See TracChangeset for help on using the changeset viewer.