mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-21 15:59:52 +01:00
Fix warning in documentor
This commit is contained in:
parent
b502129bd1
commit
3fccf09ae1
@ -141,7 +141,7 @@ class Base
|
||||
* @param string $string String that should be converted to lowercase
|
||||
* @return string
|
||||
*/
|
||||
public static function toLower($string)
|
||||
public static function toLower($string = '')
|
||||
{
|
||||
return extension_loaded('mbstring') ? mb_strtolower($string) : strtolower($string);
|
||||
}
|
||||
@ -152,7 +152,7 @@ class Base
|
||||
* @param string $string String that should be converted to uppercase
|
||||
* @return string
|
||||
*/
|
||||
public static function toUpper($string)
|
||||
public static function toUpper($string = '')
|
||||
{
|
||||
return extension_loaded('mbstring') ? mb_strtoupper($string) : strtoupper($string);
|
||||
}
|
||||
|
@ -11,5 +11,6 @@ $documentor = new Faker\Documentor($generator);
|
||||
|
||||
<?php foreach ($formatters as $formatter => $example): ?>
|
||||
<?php echo str_pad($formatter, 23) ?><?php if ($example): ?> // <?php echo $example ?> <?php endif; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach;
|
||||
|
Loading…
x
Reference in New Issue
Block a user