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

@@ -29,7 +29,7 @@ class LoadSocialWorkMetadata extends Fixture implements OrderedFixtureInterface
public function load(ObjectManager $manager): void
{
try {
$csv = Reader::createFromPath(__DIR__.'/data/social_work_metadata.csv');
$csv = Reader::from(__DIR__.'/data/social_work_metadata.csv');
} catch (\Throwable $e) {
throw new \Exception('Error while loading CSV.', 0, $e);
}