From 5a082429dbb6c9c907d9f0a566a276efaf0d03d6 Mon Sep 17 00:00:00 2001 From: Olivier Dolbeau Date: Wed, 11 Dec 2024 14:41:54 +0100 Subject: [PATCH] Add missing return type for some Generator methods --- src/Generator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index ee01a41e94..bcb22b3d3d 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -752,7 +752,7 @@ public function parse($string) * * @example 'video/avi' */ - public function mimeType() + public function mimeType(): string { return $this->ext(Extension\FileExtension::class)->mimeType(); } @@ -762,7 +762,7 @@ public function mimeType() * * @example avi */ - public function fileExtension() + public function fileExtension(): string { return $this->ext(Extension\FileExtension::class)->extension(); } @@ -770,7 +770,7 @@ public function fileExtension() /** * Get a full path to a new real file on the system. */ - public function filePath() + public function filePath(): string { return $this->ext(Extension\FileExtension::class)->filePath(); }