Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing return type for some Generator methods
Browse files Browse the repository at this point in the history
odolbeau committed Dec 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2114cc6 commit c56ed87
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
@@ -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)

6 changes: 3 additions & 3 deletions src/Generator.php
Original file line number Diff line number Diff line change
@@ -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,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();
}

0 comments on commit c56ed87

Please sign in to comment.