Skip to content

Commit

Permalink
Add missing return type for some Generator methods
Browse files Browse the repository at this point in the history
  • Loading branch information
odolbeau committed Dec 11, 2024
1 parent 2114cc6 commit 5a08242
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -762,15 +762,15 @@ public function mimeType()
*
* @example avi
*/
public function fileExtension()
public function fileExtension(): string
{
return $this->ext(Extension\FileExtension::class)->extension();
}

/**
* 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();
}
Expand Down

0 comments on commit 5a08242

Please sign in to comment.