Changeset 63158
- Timestamp:
- 08/07/2026 07:12:29 PM (5 weeks ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
src/wp-includes/load.php (modified) (1 diff)
-
tests/phpstan/baselines/argument.type.neon (modified) (5 diffs)
-
tests/phpstan/baselines/notIdentical.alwaysTrue.neon (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r62647 r63158 1465 1465 * @param mixed $maybeint Data you wish to have converted to a non-negative integer. 1466 1466 * @return int A non-negative integer. 1467 * @phpstan-return non-negative-int 1468 */ 1469 function absint( $maybeint ): int { 1467 */ 1468 function absint( $maybeint ) { 1470 1469 return abs( (int) $maybeint ); 1471 1470 } -
trunk/tests/phpstan/baselines/argument.type.neon
r63024 r63158 57 57 message: '#^Parameter \#1 \$text of function esc_attr expects string, int given\.$#' 58 58 identifier: argument.type 59 count: 3 60 path: ../../../src/wp-admin/edit-comments.php 61 - 62 message: '#^Parameter \#1 \$text of function esc_attr expects string, int\<0, max\> given\.$#' 63 identifier: argument.type 64 count: 1 59 count: 4 65 60 path: ../../../src/wp-admin/edit-comments.php 66 61 - … … 575 570 path: ../../../src/wp-admin/nav-menus.php 576 571 - 577 message: '#^Parameter \#2 \$menu_data of function wp_save_nav_menu_items expects array\<array\>, int \<0, max\>given\.$#'572 message: '#^Parameter \#2 \$menu_data of function wp_save_nav_menu_items expects array\<array\>, int given\.$#' 578 573 identifier: argument.type 579 574 count: 1 … … 715 710 path: ../../../src/wp-content/themes/twentyeleven/inc/theme-options.php 716 711 - 717 message: '#^Parameter \#1 \$text of function esc_attr expects string, int \<0, max\>given\.$#'712 message: '#^Parameter \#1 \$text of function esc_attr expects string, int given\.$#' 718 713 identifier: argument.type 719 714 count: 1 … … 780 775 path: ../../../src/wp-content/themes/twentyfourteen/inc/widgets.php 781 776 - 782 message: '#^Parameter \#1 \$text of function esc_attr expects string, int \<0, max\>given\.$#'777 message: '#^Parameter \#1 \$text of function esc_attr expects string, int given\.$#' 783 778 identifier: argument.type 784 779 count: 1 … … 810 805 path: ../../../src/wp-content/themes/twentynineteen/template-parts/post/author-bio.php 811 806 - 812 message: '#^Parameter \#1 \$text of function esc_attr expects string, int \<0, max\>given\.$#'807 message: '#^Parameter \#1 \$text of function esc_attr expects string, int given\.$#' 813 808 identifier: argument.type 814 809 count: 1 -
trunk/tests/phpstan/baselines/notIdentical.alwaysTrue.neon
r63023 r63158 19 19 parameters: 20 20 ignoreErrors: 21 -22 message: '#^Strict comparison using \!\=\= between ''all'' and int will always evaluate to true\.$#'23 identifier: notIdentical.alwaysTrue24 count: 125 path: ../../../src/wp-admin/includes/class-wp-links-list-table.php26 21 - 27 22 message: '#^Strict comparison using \!\=\= between null and string will always evaluate to true\.$#'
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)