Changeset 63510
- Timestamp:
- 09/07/2026 12:10:14 AM (24 hours ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
composer.json (modified) (1 diff)
-
src/wp-includes/formatting.php (modified) (1 diff)
-
src/wp-includes/functions.php (modified) (1 diff)
-
tests/phpstan/baselines/argument.type.neon (modified) (2 diffs)
-
tests/phpstan/baselines/empty.variable.neon (modified) (1 diff)
-
tests/phpstan/baselines/function.alreadyNarrowedType.neon (modified) (3 diffs)
-
tests/phpstan/baselines/if.alwaysFalse.neon (modified) (1 diff)
-
tests/phpstan/baselines/property.notFound.neon (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/composer.json
r63167 r63510 52 52 "wp-coding-standards/wpcs": "~3.4.1", 53 53 "phpcompatibility/phpcompatibility-wp": "~2.1.3", 54 "phpstan/phpstan": "2.2. 5",54 "phpstan/phpstan": "2.2.13", 55 55 "phpstan/phpstan-phpunit": "2.0.18", 56 56 "yoast/phpunit-polyfills": "^1.1.0" -
trunk/src/wp-includes/formatting.php
r63491 r63510 4849 4849 $regex, 4850 4850 static function ( $matches ) { 4851 if ( ! isset( $matches[0] ) ) {4852 return '';4853 }4854 4855 4851 if ( isset( $matches['non_cdata'] ) ) { 4856 4852 // escape HTML entities in the non-CDATA Section. -
trunk/src/wp-includes/functions.php
r63509 r63510 4361 4361 * @access private 4362 4362 * 4363 * @param string|WP_Error $message Error message or WP_Error object.4364 * @param string $title Optional. Error title. Default empty string.4365 * @param string|array $args Optional. Arguments to control behavior. Default empty array.4363 * @param string|WP_Error|int $message Error message, WP_Error object, or integer response. 4364 * @param string $title Optional. Error title. Default empty string. 4365 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4366 4366 * @return array { 4367 4367 * Processed arguments. 4368 4368 * 4369 * @type string $0 Error message.4370 * @type string $1 Error title.4371 * @type array $2 Arguments to control behavior.4369 * @type string|int $0 Error message, or integer response. 4370 * @type string $1 Error title. 4371 * @type array $2 Arguments to control behavior. 4372 4372 * } 4373 4373 */ -
trunk/tests/phpstan/baselines/argument.type.neon
r63461 r63510 775 775 path: ../../../src/wp-includes/class-wp-embed.php 776 776 - 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 - 777 782 message: '#^Parameter \#3 \$value of function curl_setopt expects int, string given\.$#' 778 783 identifier: argument.type … … 929 934 count: 1 930 935 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 931 941 - 932 942 message: '#^Parameter \#1 \$prefix of function uniqid expects string, int\<0, max\> given\.$#' -
trunk/tests/phpstan/baselines/empty.variable.neon
r63019 r63510 24 24 count: 1 25 25 path: ../../../src/wp-admin/includes/class-wp-posts-list-table.php 26 -27 message: '#^Variable \$title in empty\(\) always exists and is always falsy\.$#'28 identifier: empty.variable29 count: 130 path: ../../../src/wp-admin/includes/plugin.php31 26 - 32 27 message: '#^Variable \$parent_file in empty\(\) always exists and is not falsy\.$#' -
trunk/tests/phpstan/baselines/function.alreadyNarrowedType.neon
r63023 r63510 25 25 path: ../../../src/wp-admin/includes/ajax-actions.php 26 26 - 27 message: '#^Call to function is_wp_error\(\) with WP_Error will always evaluate to true\.$#'28 identifier: function.alreadyNarrowedType29 count: 130 path: ../../../src/wp-admin/includes/ajax-actions.php31 -32 27 message: '#^Call to function method_exists\(\) with ''ParagonIE_Sodium…'' and ''runtime_speed_test'' will always evaluate to true\.$#' 33 28 identifier: function.alreadyNarrowedType … … 49 44 count: 1 50 45 path: ../../../src/wp-admin/includes/plugin.php 51 -52 message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#'53 identifier: function.alreadyNarrowedType54 count: 155 path: ../../../src/wp-includes/block-editor.php56 46 - 57 47 message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#' … … 80 70 path: ../../../src/wp-includes/functions.php 81 71 - 72 message: '#^Call to function is_scalar\(\) with int\|string will always evaluate to true\.$#' 73 identifier: function.alreadyNarrowedType 74 count: 3 75 path: ../../../src/wp-includes/functions.php 76 - 82 77 message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' 83 78 identifier: function.alreadyNarrowedType -
trunk/tests/phpstan/baselines/if.alwaysFalse.neon
r63157 r63510 33 33 identifier: if.alwaysFalse 34 34 count: 1 35 path: ../../../src/wp-includes/load.php36 -37 message: '#^If condition is always false\.$#'38 identifier: if.alwaysFalse39 count: 140 35 path: ../../../src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 41 36 - -
trunk/tests/phpstan/baselines/property.notFound.neon
r63488 r63510 177 177 message: '#^Access to an undefined property WP_Theme\:\:\$version\.$#' 178 178 identifier: property.notFound 179 count: 5179 count: 6 180 180 path: ../../../src/wp-admin/includes/class-wp-debug-data.php 181 181 -
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)