Skip to content

Commit b3f7003

Browse files
authored
Merge pull request #38 from mhitza/fix-deprecations-0000
Fix deprecations raised #0000
2 parents 75f5e5c + 0932d59 commit b3f7003

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "userbase/client",
33
"description": "UserBase PHP Client: Identity + Login + Signup Service",
4-
"homepage": "http://www.github.com/userbase-project/userbase-client-php",
4+
"homepage": "https://github.com/linkorb/userbase-client-php",
55
"keywords": ["login", "signup", "user", "account"],
66
"type": "library",
77
"authors": [
@@ -21,9 +21,9 @@
2121
"ext-curl": "*",
2222
"linkorb/userbase-role-contracts": "^2.0",
2323
"psr/cache": "~1.0 || ^2.0 || ^3.0",
24-
"symfony/cache": "^5.4 || ^6.0",
24+
"symfony/cache": "^5.4 || ^6.0 || ^7.0",
2525
"symfony/event-dispatcher-contracts": "^2.0 || ^3.0.0",
26-
"symfony/security-core": "^5.4 || ^6.0"
26+
"symfony/security-core": "^5.4 || ^6.0 || ^7.0"
2727
},
2828
"config": {
2929
"sort-packages": true

src/Model/User.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
use LinkORB\Contracts\UserbaseRole\RoleInterface;
66
use RuntimeException;
77
use Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface;
8-
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
98
use Symfony\Component\Security\Core\User\UserInterface as BaseUserInterface;
109

1110
final class User implements
1211
AccountContainerInterface,
1312
BaseUserInterface,
1413
LegacyAdvancedUserInterface,
1514
LegacyPasswordAuthenticatedUserInterface,
16-
PasswordAuthenticatedUserInterface,
1715
PolicyContainerInterface,
1816
RoleInterface,
1917
UserInterface
@@ -274,8 +272,8 @@ public function getPolicies()
274272
return $this->policies;
275273
}
276274

277-
public function addRole($roleName)
275+
public function addRole($role)
278276
{
279-
$this->roles[] = $roleName;
277+
$this->roles[] = $role;
280278
}
281279
}

src/UserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class UserProvider implements UserProviderInterface, RoleManagerInterface
2020
private $shouldRefresh;
2121
private $dispatcher;
2222

23-
public function __construct(Client $client, $shouldRefresh = true, EventDispatcherInterface $dispatcher = null)
23+
public function __construct(Client $client, $shouldRefresh = true, EventDispatcherInterface|null $dispatcher = null)
2424
{
2525
$this->client = $client;
2626
$this->shouldRefresh = (bool) $shouldRefresh;

0 commit comments

Comments
 (0)