Fix loading data for customfield, using proper DI

This commit is contained in:
2023-07-23 00:25:15 +02:00
parent 2ad82e8cc1
commit 9690359dfa
3 changed files with 23 additions and 46 deletions

View File

@@ -353,7 +353,7 @@ class LoadPostalCodes extends AbstractFixture implements OrderedFixtureInterface
->setCode($code[0])
->setName(ucwords(strtolower($code[1])));
if (null !== $code[3]) {
if (null !== ($code[3] ?? null)) {
$c->setRefPostalCodeId($code[3]);
}