1
0
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:
Francois Zaninotto 2013-01-01 15:51:54 +01:00
parent b502129bd1
commit 3fccf09ae1
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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;