Skip to content

Commit 561a4d2

Browse files
committed
Code Quality: Fix offsetAccess.nonOffsetAccessible errors by correcting inaccurate type annotations
1 parent 51f936d commit 561a4d2

4 files changed

Lines changed: 2 additions & 38 deletions

File tree

‎phpstan.neon.dist‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ includes:
5656
- tests/phpstan/baselines/method.unused.neon
5757
- tests/phpstan/baselines/notIdentical.alwaysTrue.neon
5858
- tests/phpstan/baselines/nullCoalesce.property.neon
59-
- tests/phpstan/baselines/offsetAccess.nonOffsetAccessible.neon
6059
- tests/phpstan/baselines/offsetAccess.notFound.neon
6160
- tests/phpstan/baselines/offsetAssign.valueType.neon
6261
- tests/phpstan/baselines/parameter.defaultValue.neon

‎src/wp-admin/includes/plugin.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $call
14771477
* @global array $submenu
14781478
* @global array $menu
14791479
* @global array $_wp_real_parent_file
1480-
* @global bool $_wp_submenu_nopriv
1480+
* @global array $_wp_submenu_nopriv
14811481
* @global array $_registered_pages
14821482
* @global array $_parent_pages
14831483
*

‎src/wp-includes/class-wp-theme.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class WP_Theme implements ArrayAccess {
1515
* Whether the theme has been marked as updateable.
1616
*
1717
* @since 4.4.0
18-
* @var bool
18+
* @var bool|array<string, mixed>
1919
*
2020
* @see WP_MS_Themes_List_Table
2121
*/

‎tests/phpstan/baselines/offsetAccess.nonOffsetAccessible.neon‎

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)