Make WordPress Core

Changeset 62552


Ignore:
Timestamp:
06/24/2026 02:33:54 PM (4 months ago)
Author:
gziolo
Message:

Docs: Document exceptions in WP_Ability_Category

Adds a missing @throws annotation to WP_Ability_Category::__construct() and normalizes capitalization for the existing @throws description in WP_Ability_Category::prepare_properties().

Props igar-bhanushali.
Fixes #65512.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/abilities-api/class-wp-ability-category.php

    r62416 r62552  
    7272         *     @type array<string, mixed> $meta        Optional. Additional metadata for the ability category.
    7373         * }
     74         * @throws InvalidArgumentException If an argument is invalid.
    7475         */
    7576        public function __construct( string $slug, array $args ) {
    … …  
    123124         *     @type array<string, mixed> $meta        Optional. Additional metadata for the ability category.
    124125         * }
    125          * @throws InvalidArgumentException if an argument is invalid.
     126         * @throws InvalidArgumentException If an argument is invalid.
    126127         */
    127128        protected function prepare_properties( array $args ): array {
Note: See TracChangeset for help on using the changeset viewer.