Skip to content

Commit

Permalink
Fix warning in documentor
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Jan 1, 2013
1 parent b502129 commit 3fccf09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Faker/Provider/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static function bothify($string = '## ??')
* @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);
}
Expand All @@ -152,7 +152,7 @@ public static function toLower($string)
* @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);
}
Expand Down
1 change: 1 addition & 0 deletions test/documentor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@

<?php foreach ($formatters as $formatter => $example): ?>
<?php echo str_pad($formatter, 23) ?><?php if ($example): ?> // <?php echo $example ?> <?php endif; ?>

<?php endforeach; ?>
<?php endforeach;

0 comments on commit 3fccf09

Please sign in to comment.