Skip to content

Commit

Permalink
refactor: Fix issue with undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Oct 29, 2024
1 parent 8706def commit 01db9be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/services/MetaBundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,12 +410,12 @@ public function createMetaBundleFromSeoElement(
);
}
}
$metaBundle = MetaBundle::create($metaBundleDefaults);
if ($baseConfig !== null) {

Check failure on line 414 in src/services/MetaBundles.php

View workflow job for this annotation

GitHub Actions / PHPStan

Strict comparison using !== between null and null will always evaluate to false.
$this->mergeMetaBundleSettings($metaBundle, $baseConfig);
}
$this->updateMetaBundle($metaBundle, $sourceSiteId);
}
$metaBundle = MetaBundle::create($metaBundleDefaults);
if ($baseConfig !== null) {
$this->mergeMetaBundleSettings($metaBundle, $baseConfig);
}
$this->updateMetaBundle($metaBundle, $sourceSiteId);
}
}

Expand Down

0 comments on commit 01db9be

Please sign in to comment.