Skip to content

Commit

Permalink
Merge pull request #3415 from bolt/bobdenotter-patch-1
Browse files Browse the repository at this point in the history
Strict use of strings as keys
  • Loading branch information
bobdenotter authored Feb 19, 2023
2 parents cb533dc + adbadef commit 3ce4716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataFixtures/TaxonomyFixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ private function loadTaxonomies(ObjectManager $manager): void
foreach ($options as $key => $value) {
$taxonomy = $this->taxonomyRepository->factory(
$taxonomyDefinition['slug'],
$key,
(string) $key,
$value,
$taxonomyDefinition['has_sortorder'] ? $order++ : 0
);

$manager->persist($taxonomy);
$reference = 'taxonomy_' . $taxonomyDefinition['slug'] . '_' . Str::slug($key);
$reference = 'taxonomy_' . $taxonomyDefinition['slug'] . '_' . Str::slug((string) $key);
$this->addReference($reference, $taxonomy);
}
}
Expand Down

0 comments on commit 3ce4716

Please sign in to comment.