mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-10 22:28:23 +00:00
Fix deprecation notice League/csv for createFromStream and createFromPath replaced by new from() method
This commit is contained in:
@@ -36,7 +36,7 @@ readonly class SocialIssueCSVExportService
|
||||
public function generateCsv(array $issues): Writer
|
||||
{
|
||||
// CSV headers
|
||||
$csv = Writer::createFromPath('php://temp', 'r+');
|
||||
$csv = Writer::from('php://temp', 'r+');
|
||||
$csv->insertOne(
|
||||
array_map(
|
||||
fn (string $e) => $this->translator->trans($e),
|
||||
|
||||
Reference in New Issue
Block a user