Skip to content

Commit

Permalink
Person->name was missing string return type (#424)
Browse files Browse the repository at this point in the history
Co-authored-by: Pim Jansen <pjansen@senet.nl>
  • Loading branch information
pimjansen and pimjansen committed Jan 20, 2022
1 parent baa2f17 commit 34d231f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Faker/Extension/PersonExtension.php
Expand Up @@ -13,11 +13,9 @@ interface PersonExtension extends Extension
/**
* @param string|null $gender 'male', 'female' or null for any
*
* @return string
*
* @example 'John Doe'
*/
public function name(?string $gender = null);
public function name(?string $gender = null): string;

/**
* @param string|null $gender 'male', 'female' or null for any
Expand Down

0 comments on commit 34d231f

Please sign in to comment.