Make WordPress Core

Changeset 59153


Ignore:
Timestamp:
10/01/2024 05:19:37 PM (6 weeks ago)
Author:
czapla
Message:

Interactivity API: Fix code formatting and add better types in docstrings.

Follow-up to [62136].

Props swissspidy.
Fixes #62149.

Location:
trunk/src/wp-includes/interactivity-api
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/interactivity-api/class-wp-interactivity-api.php

    r59131 r59153  
    102102     *
    103103     * @since 6.7.0
    104      * @var array<mixed>|null
     104     * @var array{attributes: array<string, string|bool>}|null
    105105     */
    106106    private $current_element = null;
     107
    107108    /**
    108109     * Gets and/or sets the initial state of an Interactivity API store for a
     
    307308            : array();
    308309    }
     310
    309311    /**
    310312     * Returns an array representation of the current element being processed.
     
    314316     * @since 6.7.0
    315317     *
    316      * @return array|null Current element.
     318     * @return array{attributes: array<string, string|bool>}|null Current element.
    317319     */
    318320    public function get_element(): ?array {
  • trunk/src/wp-includes/interactivity-api/interactivity-api.php

    r59131 r59153  
    134134 * @since 6.7.0
    135135 *
    136  * @return array|null Current element.
     136 * @return array{attributes: array<string, string|bool>}|null Current element.
    137137 */
    138138function wp_interactivity_get_element(): ?array {
Note: See TracChangeset for help on using the changeset viewer.