Changeset 64012
- Timestamp:
- 09/30/2026 02:33:44 AM (11 days ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
composer.json (modified) (1 diff)
-
tests/phpstan/baselines/argument.type.neon (modified) (2 diffs)
-
tests/phpstan/baselines/function.alreadyNarrowedType.neon (modified) (2 diffs)
-
tests/phpstan/baselines/function.impossibleType.neon (modified) (1 diff)
-
tests/phpstan/baselines/isset.offset.neon (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/composer.json
r63787 r64012 53 53 "wp-coding-standards/wpcs": "~3.4.1", 54 54 "phpcompatibility/phpcompatibility-wp": "~2.1.3", 55 "phpstan/phpstan": "2.2.1 4",55 "phpstan/phpstan": "2.2.16", 56 56 "phpstan/phpstan-phpunit": "2.0.18", 57 57 "yoast/phpunit-polyfills": "^1.1.0" -
trunk/tests/phpstan/baselines/argument.type.neon
r63941 r64012 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: 2777 message: '#^Parameter \#3 \$value of function curl_setopt expects int, string given\.$#' 778 identifier: argument.type 779 count: 1 780 780 path: ../../../src/wp-includes/class-wp-http-curl.php 781 781 - 782 message: '#^Parameter \#3 \$value of function curl_setopt expects int, string given\.$#'783 identifier: argument.type784 count: 1785 path: ../../../src/wp-includes/class-wp-http-curl.php786 -787 782 message: '#^Parameter \#2 \$mode of function stream_set_blocking expects bool, int given\.$#' 788 783 identifier: argument.type … … 934 929 count: 1 935 930 path: ../../../src/wp-includes/formatting.php 936 -937 message: '#^Parameter \#1 \$finfo of function finfo_file expects resource, resource\|false given\.$#'938 identifier: argument.type939 count: 2940 path: ../../../src/wp-includes/functions.php941 931 - 942 932 message: '#^Parameter \#1 \$prefix of function uniqid expects string, int\<0, max\> given\.$#' -
trunk/tests/phpstan/baselines/function.alreadyNarrowedType.neon
r63510 r64012 70 70 path: ../../../src/wp-includes/functions.php 71 71 - 72 message: '#^Call to function is_scalar\(\) with int\|string will always evaluate to true\.$#'73 identifier: function.alreadyNarrowedType74 count: 375 path: ../../../src/wp-includes/functions.php76 -77 72 message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' 78 73 identifier: function.alreadyNarrowedType … … 95 90 path: ../../../src/wp-includes/ms-functions.php 96 91 - 97 message: '#^Call to function is_array\(\) with array\{non\-falsy\-string, non\-falsy\-string&numeric\-string, numeric\-string, numeric\-string\}will always evaluate to true\.$#'92 message: '#^Call to function is_array\(\) with non\-empty\-array\<string\> will always evaluate to true\.$#' 98 93 identifier: function.alreadyNarrowedType 99 94 count: 1 -
trunk/tests/phpstan/baselines/function.impossibleType.neon
r63023 r64012 30 30 path: ../../../src/wp-admin/update.php 31 31 - 32 message: '#^Call to function is_wp_error\(\) with array will always evaluate to false\.$#'33 identifier: function.impossibleType34 count: 235 path: ../../../src/wp-includes/class-wp-tax-query.php36 -37 32 message: '#^Call to function is_string\(\) with bool will always evaluate to false\.$#' 38 33 identifier: function.impossibleType -
trunk/tests/phpstan/baselines/isset.offset.neon
r63023 r64012 30 30 path: ../../../src/wp-includes/functions.php 31 31 - 32 message: '#^Offset 2 on array\{string, non\-empty\-string, non\-empty\-string\} in isset\(\) always exists and is not nullable\.$#'33 identifier: isset.offset34 count: 135 path: ../../../src/wp-includes/media.php36 -37 32 message: '#^Offset ''orderby'' on array\{post_parent\: mixed, post_type\: ''revision'', post_status\: ''inherit'', posts_per_page\: mixed, orderby\: mixed, order\: mixed, suppress_filters\: true, post__not_in\?\: mixed, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' 38 33 identifier: isset.offset
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)