Don't cause an endless loop

This commit is contained in:
Dane Everitt 2019-12-08 10:44:58 -08:00
parent c37baa0867
commit 06e5a05f22
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class User extends Validable implements
*/
public static function getRules()
{
$rules = self::getRules();
$rules = parent::getRules();
$rules['language'][] = new In(array_keys((new self)->getAvailableLanguages()));
$rules['username'][] = new Username;