mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-05-02 18:59:36 +00:00
Fix deprecation notice League/csv for createFromStream and createFromPath replaced by new from() method
This commit is contained in:
@@ -49,7 +49,7 @@ final class ImportSocialWorkMetadata extends Command
|
||||
$filepath = $input->getOption('filepath');
|
||||
|
||||
try {
|
||||
$csv = Reader::createFromPath($filepath);
|
||||
$csv = Reader::from($filepath);
|
||||
} catch (\Throwable $e) {
|
||||
throw new \Exception('Error while loading CSV.', 0, $e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user