Don't cause an endless loop
This commit is contained in:
parent
c37baa0867
commit
06e5a05f22
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue