Skip to content

Commit

Permalink
Merge pull request Sylius#6096 from pamil/user/do-not-redefine-class-…
Browse files Browse the repository at this point in the history
…variable

[User] Do not redeclare roles property on AdminUser
  • Loading branch information
michalmarcinkowski committed Sep 14, 2016
2 parents 03f9233 + e310892 commit ab93618
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Model/AdminUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ class AdminUser extends User implements AdminUserInterface
protected $lastName;

/**
* @var array
* {@inheritdoc}
*/
protected $roles = [AdminUserInterface::DEFAULT_ADMIN_ROLE];
public function __construct()
{
parent::__construct();

$this->roles = [AdminUserInterface::DEFAULT_ADMIN_ROLE];
}

/**
* @return string
Expand Down

0 comments on commit ab93618

Please sign in to comment.