Skip to content

Conversation

@swissspidy
Copy link
Member

No description provided.

@swissspidy swissspidy added this to the 2.3.0 milestone Feb 10, 2026
@swissspidy swissspidy requested a review from a team as a code owner February 10, 2026 16:20
@swissspidy swissspidy added the scope:testing Related to testing label Feb 10, 2026
Copilot AI review requested due to automatic review settings February 10, 2026 16:20
@github-actions

This comment was marked as resolved.

@gemini-code-assist

This comment was marked as resolved.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request aims to fix newly reported PHPStan issues by adding or correcting PHPDoc annotations across several files. The changes are generally good and improve code clarity for static analysis. I've found one area where the new annotation seems inconsistent with the implementation and have suggested a correction.

abstract protected function filter_item_list( $items, $args );

/**
* @return array<string, array{slug: string, name: string, update: string, recently_active?: bool, status: string, version: string}>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The keys in this PHPDoc annotation don't seem to match what the implementing methods (Plugin_Command::get_all_items and Theme_Command::get_all_items) return. Those methods return an array with a name key for the slug and a title key for the human-readable name. This annotation uses slug and name respectively, which is inconsistent. To accurately reflect the returned data structure and avoid confusion, it would be better to use name and title in the annotation.

 * @return array<string, array{name: string, title: string, update: string, recently_active?: bool, status: string, version: string}>

This comment was marked as resolved.

@codecov

This comment was marked as resolved.

@swissspidy swissspidy merged commit 075dddc into main Feb 10, 2026
52 checks passed
@swissspidy swissspidy deleted the fix-phpstan branch February 10, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant