Skip to content

Commit 65d91fa

Browse files
Remove the array shape
Co-authored-by: Weston Ruter <westonruter@google.com>
1 parent b6a9734 commit 65d91fa

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

src/wp-includes/class-wp-script-modules.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ class WP_Script_Modules {
4141
* @param string $src Optional. Full URL of the script module, or path of the script module relative
4242
* to the WordPress root directory. If it is provided and the script module has
4343
* not been registered yet, it will be registered.
44-
* @param array<string|array{
45-
* id: string,
46-
* import?: 'static'|'dynamic'
47-
* }> $deps {
44+
* @param array $deps {
4845
* Optional. List of dependencies.
4946
*
5047
* @type string|array $0... {
@@ -112,10 +109,7 @@ public function register( string $id, string $src, array $deps = array(), $versi
112109
* @param string $src Optional. Full URL of the script module, or path of the script module relative
113110
* to the WordPress root directory. If it is provided and the script module has
114111
* not been registered yet, it will be registered.
115-
* @param array<string|array{
116-
* id: string,
117-
* import?: 'static'|'dynamic'
118-
* }> $deps {
112+
* @param array $deps {
119113
* Optional. List of dependencies.
120114
*
121115
* @type string|array $0... {

src/wp-includes/script-modules.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ function wp_script_modules(): WP_Script_Modules {
3838
* @param string $src Optional. Full URL of the script module, or path of the script module relative
3939
* to the WordPress root directory. If it is provided and the script module has
4040
* not been registered yet, it will be registered.
41-
* @param array<string|array{
42-
* id: string,
43-
* import?: 'static'|'dynamic'
44-
* }> $deps {
41+
* @param array $deps {
4542
* Optional. List of dependencies.
4643
*
4744
* @type string|array $0... {
@@ -78,10 +75,7 @@ function wp_register_script_module( string $id, string $src, array $deps = array
7875
* @param string $src Optional. Full URL of the script module, or path of the script module relative
7976
* to the WordPress root directory. If it is provided and the script module has
8077
* not been registered yet, it will be registered.
81-
* @param array<string|array{
82-
* id: string,
83-
* import?: 'static'|'dynamic'
84-
* }> $deps {
78+
* @param array $deps {
8579
* Optional. List of dependencies.
8680
*
8781
* @type string|array $0... {

0 commit comments

Comments
 (0)