mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-23 20:37:45 +00:00
Refactor CSV creation and reading to use Reader::from and Writer::from.
- Replaced deprecated `createFromPath` and `createFromStream` methods with `from`. - Updated all relevant commands, services, controllers, and exporters.
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