Skip to content

Commit

Permalink
Remove the array shape
Browse files Browse the repository at this point in the history
Co-authored-by: Weston Ruter <westonruter@google.com>
  • Loading branch information
luisherranz and westonruter committed Jan 20, 2024
1 parent b6a9734 commit 65d91fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions src/wp-includes/class-wp-script-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ class WP_Script_Modules {
* @param string $src Optional. Full URL of the script module, or path of the script module relative
* to the WordPress root directory. If it is provided and the script module has
* not been registered yet, it will be registered.
* @param array<string|array{
* id: string,
* import?: 'static'|'dynamic'
* }> $deps {
* @param array $deps {
* Optional. List of dependencies.
*
* @type string|array $0... {
Expand Down Expand Up @@ -112,10 +109,7 @@ public function register( string $id, string $src, array $deps = array(), $versi
* @param string $src Optional. Full URL of the script module, or path of the script module relative
* to the WordPress root directory. If it is provided and the script module has
* not been registered yet, it will be registered.
* @param array<string|array{
* id: string,
* import?: 'static'|'dynamic'
* }> $deps {
* @param array $deps {
* Optional. List of dependencies.
*
* @type string|array $0... {
Expand Down
10 changes: 2 additions & 8 deletions src/wp-includes/script-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ function wp_script_modules(): WP_Script_Modules {
* @param string $src Optional. Full URL of the script module, or path of the script module relative
* to the WordPress root directory. If it is provided and the script module has
* not been registered yet, it will be registered.
* @param array<string|array{
* id: string,
* import?: 'static'|'dynamic'
* }> $deps {
* @param array $deps {
* Optional. List of dependencies.
*
* @type string|array $0... {
Expand Down Expand Up @@ -78,10 +75,7 @@ function wp_register_script_module( string $id, string $src, array $deps = array
* @param string $src Optional. Full URL of the script module, or path of the script module relative
* to the WordPress root directory. If it is provided and the script module has
* not been registered yet, it will be registered.
* @param array<string|array{
* id: string,
* import?: 'static'|'dynamic'
* }> $deps {
* @param array $deps {
* Optional. List of dependencies.
*
* @type string|array $0... {
Expand Down

0 comments on commit 65d91fa

Please sign in to comment.