| @@ -28,15 +28,15 @@ | ||
| 28 | 28 | * Recursively retrieves all dependencies of a given handle. |
| 29 | 29 | * |
| 30 | 30 | * @param string $handle The handle. |
| 31 | 31 | * |
| 32 | - * @return string[]|bool All dependencies of the given handle. | |
| 32 | + * @return string[] All dependencies of the given handle. | |
| 33 | 33 | */ |
| 34 | 34 | public function get_dependency_handles( $handle ) { |
| 35 | 35 | $scripts = \wp_scripts(); |
| 36 | 36 | |
| 37 | 37 | if ( ! isset( $scripts->registered[ $handle ] ) ) { |
| 38 | - return false; | |
| 38 | + return []; | |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | $obj = $scripts->registered[ $handle ]; |
| 42 | 42 | $deps = $obj->deps; |