Skip to content

Commit 0a77bad

Browse files
gzioloclaude
andcommitted
Connectors: Add missing logo_url field to PHPDoc array shape.
The `logo_url?: string|null` field present in the PHPStan `Connector` type was absent from the WordPress-style `@return` array shape on both `wp_get_connectors()` and `WP_Connector_Registry::get_all_registered()`. Adds it after `description` to match the PHPStan field order, and adjusts column alignment across all sibling `@type` entries. Props gziolo. Fixes #64791. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2ce88c4 commit 0a77bad

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/wp-includes/class-wp-connector-registry.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,11 @@ public function unregister( string $id ): ?array {
212212
* @type array ...$0 {
213213
* Data for a single connector.
214214
*
215-
* @type string $name The connector's display name.
216-
* @type string $description The connector's description.
217-
* @type string $type The connector type. Currently, only 'ai_provider' is supported.
218-
* @type array $plugin Optional. Plugin data for install/activate UI.
215+
* @type string $name The connector's display name.
216+
* @type string $description The connector's description.
217+
* @type string|null $logo_url Optional. URL to the connector's logo image.
218+
* @type string $type The connector type. Currently, only 'ai_provider' is supported.
219+
* @type array $plugin Optional. Plugin data for install/activate UI.
219220
* @type string $slug The WordPress.org plugin slug.
220221
* }
221222
* @type array $authentication {

src/wp-includes/connectors.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ function wp_get_connector( string $id ): ?array {
6363
* @type array ...$0 {
6464
* Data for a single connector.
6565
*
66-
* @type string $name The connector's display name.
67-
* @type string $description The connector's description.
68-
* @type string $type The connector type. Currently, only 'ai_provider' is supported.
69-
* @type array $plugin Optional. Plugin data for install/activate UI.
66+
* @type string $name The connector's display name.
67+
* @type string $description The connector's description.
68+
* @type string|null $logo_url Optional. URL to the connector's logo image.
69+
* @type string $type The connector type. Currently, only 'ai_provider' is supported.
70+
* @type array $plugin Optional. Plugin data for install/activate UI.
7071
* @type string $slug The WordPress.org plugin slug.
7172
* }
7273
* @type array $authentication {

0 commit comments

Comments
 (0)