Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Fix missing parse for French mobile number
Browse files Browse the repository at this point in the history
  • Loading branch information
ctessier committed Sep 12, 2017
1 parent 95b16a4 commit 6acf080
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Faker/Provider/fr_FR/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ public function phoneNumber07WithSeparator()
/**
* @example '0601020304'
*/
public static function mobileNumber()
public function mobileNumber()
{
return static::numerify(static::randomElement(static::$mobileFormats));
$format = static::randomElement(static::$mobileNumberFormats);

return static::numerify($this->generator->parse($format));
}
}

0 comments on commit 6acf080

Please sign in to comment.