mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
fixes after merge of master into upgrade-sf4
This commit is contained in:
@@ -344,11 +344,11 @@ class LoadPostalCodes extends AbstractFixture implements OrderedFixtureInterface
|
||||
->findOneBy(['countryCode' => $countryCode]);
|
||||
|
||||
foreach ($lines as $line) {
|
||||
$code = str_getcsv($line);
|
||||
$code = str_getcsv((string) $line);
|
||||
$c = new PostalCode();
|
||||
$c->setCountry($country)
|
||||
->setCode($code[0])
|
||||
->setName(\ucwords(\strtolower($code[1])));
|
||||
->setName(\ucwords(\strtolower((string) $code[1])));
|
||||
|
||||
if (null !== ($code[3] ?? null)) {
|
||||
$c->setRefPostalCodeId($code[3]);
|
||||
|
Reference in New Issue
Block a user