@@ -518,7 +518,7 @@ discard block |
||
| 518 | 518 | * Only enqueue block assets when needed. |
| 519 | 519 | * |
| 520 | 520 | * @param string $type Slug of the block. |
| 521 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
| 521 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
| 522 | 522 | * detected script dependencies from the webpack build. |
| 523 | 523 | * |
| 524 | 524 | * @return void |
@@ -866,10 +866,10 @@ discard block |
||
| 866 | 866 | * @since 8.3.0 |
| 867 | 867 | * |
| 868 | 868 | * @param string $url URL saved as an attribute in block. |
| 869 | - * @param array $allowed Array of allowed hosts for that block, or regexes to check against. |
|
| 869 | + * @param string[] $allowed Array of allowed hosts for that block, or regexes to check against. |
|
| 870 | 870 | * @param bool $is_regex Array of regexes matching the URL that could be used in block. |
| 871 | 871 | * |
| 872 | - * @return bool|string |
|
| 872 | + * @return false|string |
|
| 873 | 873 | */ |
| 874 | 874 | public static function validate_block_embed_url( $url, $allowed = array(), $is_regex = false ) { |
| 875 | 875 | if ( |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | /** |
| 49 | 49 | * Handles composer dependencies updates |
| 50 | 50 | * |
| 51 | - * @param Array $package package as associative array. |
|
| 51 | + * @param string $package package as associative array. |
|
| 52 | 52 | */ |
| 53 | 53 | public function handle_composer_dependencies( $package ) { |
| 54 | 54 | $name = $package['name']; |