From e81ecb4d568dd5dccdfb3ee7bb0fd28cfedf9355 Mon Sep 17 00:00:00 2001 From: jesseeproductions Date: Wed, 6 Mar 2024 11:31:45 -0500 Subject: [PATCH] Assets - phpstan fixes --- src/Assets/Asset.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Assets/Asset.php b/src/Assets/Asset.php index fca20cf..4ede14d 100644 --- a/src/Assets/Asset.php +++ b/src/Assets/Asset.php @@ -1333,7 +1333,7 @@ public function set_compiled_version( string $src ) { * * @param string $src The partial path to the asset. * - * @return string|null + * @return array|null */ public function get_compiled_dependencies( string $src ): ?array { $data = $this->get_compiled_data( $src ); @@ -1357,7 +1357,7 @@ public function set_block_dependencies( string $src ) { return $this; } - if ( ! empty( $this->dependencies ) && is_array( $this->dependencies ) ) { + if ( ! empty( $this->dependencies ) ) { $block_dependencies = array_merge( $block_dependencies, $this->dependencies ); }