Skip to content
Snippets Groups Projects

tuleap-108-add-stricter-code-quality-tools-configuration

9 files
+ 20
11
Compare changes
  • Side-by-side
  • Inline

Files

+ 4
1
@@ -18,7 +18,7 @@ class UserBuilder
private bool $hasRequiredRoles = false;
private bool $hasRequiredIsVerified = false;
public function __construct($password_hasher)
public function __construct(UserPasswordHasherInterface $password_hasher)
{
$this->user = new User();
$this->password_hasher = $password_hasher;
@@ -59,6 +59,9 @@ class UserBuilder
return $this;
}
/**
* @param array<string> $roles
*/
public function withRoles(array $roles): UserBuilder
{
if (! in_array(['ROLE_USER'], $roles)) {
Loading