Skip to content

Commit

Permalink
InjectDefault: Add void return type.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Aug 18, 2021
1 parent a5680e3 commit 0e2daec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/User/Entity/CmsUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface CmsUser extends IIdentity
// Constructor will be reverted in Doctrine 3.0
// public function __construct(string $username, string $password, string $email, string $role = self::ROLE_USER);

public function injectDefault(string $username, string $password, string $email, string $role = self::ROLE_USER);
public function injectDefault(string $username, string $password, string $email, string $role = self::ROLE_USER): void;

/**
* @return string[]
Expand Down
2 changes: 1 addition & 1 deletion src/User/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function __construct(string $username, string $password, string $email, s
}


public function injectDefault(string $username, string $password, string $email, string $role = self::ROLE_USER)
public function injectDefault(string $username, string $password, string $email, string $role = self::ROLE_USER): void
{
$this->username = trim(Strings::lower($username));
$this->password = $password
Expand Down

0 comments on commit 0e2daec

Please sign in to comment.