mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-22 00:09:59 +01:00
syntax tweak in preg_replace_callback()
This commit is contained in:
parent
92048ce554
commit
5750941580
@ -50,7 +50,7 @@ class Base
|
||||
*/
|
||||
protected static function numerify($string)
|
||||
{
|
||||
return preg_replace_callback('/\#/', get_called_class() . '::randomDigit', $string);
|
||||
return preg_replace_callback('/\#/', 'static::randomDigit', $string);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -61,7 +61,7 @@ class Base
|
||||
*/
|
||||
protected static function lexify($string)
|
||||
{
|
||||
return preg_replace_callback('/\?/', get_called_class() . '::randomLetter', $string);
|
||||
return preg_replace_callback('/\?/', 'static::randomLetter', $string);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user