From 52e17cc7aa7e865c24378c5aad2482522fb2aa8f Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 7 Dec 2024 19:16:48 +0100 Subject: [PATCH] Fix --- src/Command/AddMassMediaCommand.php | 2 +- src/Filesystem/Replicate.php | 2 +- src/Metadata/AmazonMetadataBuilder.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Command/AddMassMediaCommand.php b/src/Command/AddMassMediaCommand.php index a2d4cef01..1a4b4e217 100644 --- a/src/Command/AddMassMediaCommand.php +++ b/src/Command/AddMassMediaCommand.php @@ -57,7 +57,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $readHeaders = false; while (!feof($fp)) { - $data = fgetcsv($fp, 0, $delimiter, $enclosure, (string) $escape); + $data = fgetcsv($fp, 0, $delimiter, $enclosure, $escape); if (!\is_array($data)) { continue; diff --git a/src/Filesystem/Replicate.php b/src/Filesystem/Replicate.php index d41f0f9e9..54b732aad 100644 --- a/src/Filesystem/Replicate.php +++ b/src/Filesystem/Replicate.php @@ -28,7 +28,7 @@ final class Replicate implements Adapter, FileFactory, StreamFactory, MetadataSu public function __construct( private Adapter $primary, private Adapter $secondary, - private LoggerInterface $logger = new NullLogger() + private LoggerInterface $logger = new NullLogger(), ) { } diff --git a/src/Metadata/AmazonMetadataBuilder.php b/src/Metadata/AmazonMetadataBuilder.php index bdeafc441..6f8874be6 100644 --- a/src/Metadata/AmazonMetadataBuilder.php +++ b/src/Metadata/AmazonMetadataBuilder.php @@ -60,7 +60,7 @@ final class AmazonMetadataBuilder implements MetadataBuilderInterface */ public function __construct( private array $settings, - private MimeTypesInterface $mimeTypes = new MimeTypes() + private MimeTypesInterface $mimeTypes = new MimeTypes(), ) { }