Skip to content

Commit

Permalink
Resolving phpstan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Jul 7, 2023
1 parent 3dea3e9 commit 17b2f39
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,12 @@ public function mergeConfigValue( $original, $new ) {
$original[ $key ] = $new[ $key ];
}

if ( is_array( $new ) ) {
foreach ( $new as $key => $item ) {
if ( isset( $original[ $key ] ) ) {
continue;
}

$original[ $key ] = $item;
foreach ( $new as $key => $item ) {
if ( isset( $original[ $key ] ) ) {
continue;
}

$original[ $key ] = $item;
}

return $original;
Expand Down

0 comments on commit 17b2f39

Please sign in to comment.