From f38cc560f9a3fed2cd2d56692235e4528b7e9952 Mon Sep 17 00:00:00 2001 From: sebprt Date: Mon, 24 Jun 2024 11:38:22 +0200 Subject: [PATCH] Removed sheet management from Loader --- src/Sheet/FingersCrossed/Loader.php | 3 --- src/Sheet/Safe/Loader.php | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/Sheet/FingersCrossed/Loader.php b/src/Sheet/FingersCrossed/Loader.php index 7c3c15e..de452ff 100644 --- a/src/Sheet/FingersCrossed/Loader.php +++ b/src/Sheet/FingersCrossed/Loader.php @@ -20,11 +20,8 @@ { public function __construct( private WriterInterface $writer, - private string $sheetName, private LoggerInterface $logger = new NullLogger() ) { - /* @phpstan-ignore-next-line */ - $this->writer->getCurrentSheet()->setName($this->sheetName); } public function load(): \Generator diff --git a/src/Sheet/Safe/Loader.php b/src/Sheet/Safe/Loader.php index eccf5fe..5822fed 100644 --- a/src/Sheet/Safe/Loader.php +++ b/src/Sheet/Safe/Loader.php @@ -18,11 +18,8 @@ { public function __construct( private WriterInterface $writer, - private string $sheetName, private LoggerInterface $logger = new NullLogger() ) { - /* @phpstan-ignore-next-line */ - $this->writer->getCurrentSheet()->setName($this->sheetName); } public function load(): \Generator