Make WordPress Core


Ignore:
Timestamp:
12/07/2025 04:14:08 AM (3 months ago)
Author:
westonruter
Message:

Docs: Improve accuracy for types in phpdoc for WP_Dependencies, _WP_Dependency, WP_Scripts, and WP_Styles.

This increases these classes to PHPStan level 8.

Developed in https://github.com/WordPress/wordpress-develop/pull/10607

See #64238.

File:
1 edited

Legend:

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

    r61357 r61358  
    5757     * An array of additional arguments passed when a handle is registered.
    5858     *
    59      * Arguments are appended to the item query string.
     59     * The keys are dependency handles and the values are query strings which are appended to the item URL's query
     60     * string, after the `ver` if provided.
    6061     *
    6162     * @since 2.6.0
    6263     *
    63      * @var array
     64     * @var array<string, string>
    6465     */
    6566    public $args = array();
     
    101102     * @since 5.9.0
    102103     *
    103      * @var array
     104     * @var array<string, string|null>
    104105     */
    105106    private $queued_before_register = array();
Note: See TracChangeset for help on using the changeset viewer.