1
0
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:
Francois Zaninotto 2011-10-19 14:00:58 +02:00
parent 92048ce554
commit 5750941580

View File

@ -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);
}
/**