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 c56ed87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Removed functionality for populating ORM entities and models (#764)
- Added a PHP version support policy (#752)
- Stopped using `static` in callables in `Provider\pt_BR\PhoneNumber` (#785)
- Add missing return types in Generator (#922)

## [2023-06-12, v1.23.0](https://github.com/FakerPHP/Faker/compare/v1.22.0..v1.23.0)

Expand Down
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 c56ed87

Please sign in to comment.