Skip to content

Commit

Permalink
Assets - phpstan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseeproductions committed Mar 6, 2024
1 parent 6c0ebc8 commit e81ecb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Assets/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 );
}

Expand Down

0 comments on commit e81ecb4

Please sign in to comment.