Skip to content

Commit 9273202

Browse files
committed
CS: Apply ternary_to_null_coalescing fixer
1 parent c935b6a commit 9273202

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

User/InMemoryUserProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class InMemoryUserProvider implements UserProviderInterface
3535
public function __construct(array $users = [])
3636
{
3737
foreach ($users as $username => $attributes) {
38-
$password = isset($attributes['password']) ? $attributes['password'] : null;
39-
$enabled = isset($attributes['enabled']) ? $attributes['enabled'] : true;
40-
$roles = isset($attributes['roles']) ? $attributes['roles'] : [];
38+
$password = $attributes['password'] ?? null;
39+
$enabled = $attributes['enabled'] ?? true;
40+
$roles = $attributes['roles'] ?? [];
4141
$user = new User($username, $password, $roles, $enabled, true, true, true);
4242

4343
$this->createUser($user);

0 commit comments

Comments
 (0)