Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1242 from Stichoza/patch-1
Browse files Browse the repository at this point in the history
Use static instead of self
  • Loading branch information
fzaninotto authored Jun 26, 2017
2 parents 596c62b + 2ed7790 commit 7e938b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Faker/Provider/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected static function strlen($text)
protected static function validStart($word)
{
$isValid = true;
if (self::$textStartsWithUppercase) {
if (static::$textStartsWithUppercase) {
$isValid = preg_match('/^\p{Lu}/u', $word);
}
return $isValid;
Expand Down

0 comments on commit 7e938b1

Please sign in to comment.