Skip to content

Commit

Permalink
fix call to static method
Browse files Browse the repository at this point in the history
  • Loading branch information
nkostadinov committed Aug 6, 2018
1 parent 99776ea commit ce38c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public function isActive()
* @return User The User model if found.
* @throws NotFoundHttpException If the user is not found.
*/
public function findByEmailOrUsername($value)
public static function findByEmailOrUsername($value)
{
$user = self::find()
->where(['email' => $value])
Expand Down

0 comments on commit ce38c9d

Please sign in to comment.