Fix deprecation notice League/csv for createFromStream and createFromPath replaced by new from() method

This commit is contained in:
2025-10-27 13:21:04 +01:00
parent 01889ac671
commit f42bb498e4
15 changed files with 18 additions and 18 deletions

View File

@@ -287,7 +287,7 @@ final class AddressReferenceBaseImporter
$filename = sprintf('%s-%s.csv', (new \DateTimeImmutable())->format('Ymd-His'), uniqid());
$path = Path::normalize(sprintf('%s%s%s', sys_get_temp_dir(), DIRECTORY_SEPARATOR, $filename));
$writer = Writer::createFromPath($path, 'w+');
$writer = Writer::from($path, 'w+');
// insert headers
$writer->insertOne([
'postalcode',