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:
2025-10-30 00:22:22 +01:00
parent 426d0dc193
commit d74179f1e1
15 changed files with 18 additions and 18 deletions

View File

@@ -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),