Skip to content

Commit 9a62302

Browse files
committed
fixed failing tests
Signed-off-by: MarioRadu <[email protected]>
1 parent 691a30e commit 9a62302

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/App/src/Entity/OAuthAccessToken.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Api\App\Repository\OAuthAccessTokenRepository;
88
use DateTimeImmutable;
99
use Doctrine\Common\Collections\ArrayCollection;
10+
use Doctrine\Common\Collections\Collection;
1011
use Doctrine\Common\Collections\Criteria;
1112
use Doctrine\ORM\Mapping as ORM;
1213
use Lcobucci\JWT\Configuration;
@@ -45,7 +46,7 @@ class OAuthAccessToken implements AccessTokenEntityInterface
4546
#[ORM\JoinTable(name: "oauth_access_token_scopes")]
4647
#[ORM\JoinColumn(name: "access_token_id", referencedColumnName: "id")]
4748
#[ORM\InverseJoinColumn(name: "scope_id", referencedColumnName: "id")]
48-
protected ArrayCollection $scopes;
49+
protected Collection $scopes;
4950

5051
#[ORM\Column(name: 'expires_at', type: "datetime_immutable")]
5152
private DateTimeImmutable $expiresAt;

src/App/src/Entity/OAuthAuthCode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Api\App\Repository\OAuthAuthCodeRepository;
88
use DateTimeImmutable;
99
use Doctrine\Common\Collections\ArrayCollection;
10+
use Doctrine\Common\Collections\Collection;
1011
use Doctrine\Common\Collections\Criteria;
1112
use Doctrine\ORM\Mapping as ORM;
1213
use League\OAuth2\Server\Entities\AuthCodeEntityInterface;
@@ -38,7 +39,7 @@ class OAuthAuthCode implements AuthCodeEntityInterface
3839
#[ORM\JoinTable(name: "oauth_auth_code_scopes")]
3940
#[ORM\JoinColumn(name: "auth_code_id", referencedColumnName: "id")]
4041
#[ORM\InverseJoinColumn(name: "scope_id", referencedColumnName: "id")]
41-
protected ArrayCollection $scopes;
42+
protected Collection $scopes;
4243

4344
#[ORM\Column(type: "datetime_immutable", nullable: true)]
4445
private DateTimeImmutable $expiresDatetime;

src/App/src/Entity/OAuthScope.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class OAuthScope implements ScopeEntityInterface
2727
private string $scope = '';
2828

2929
#[ORM\ManyToMany(targetEntity: OAuthAccessToken::class, mappedBy: "scopes")]
30-
protected ArrayCollection $accessTokens;
30+
protected Collection $accessTokens;
3131

3232
#[ORM\ManyToMany(targetEntity: OAuthAuthCode::class, mappedBy: "scopes")]
33-
protected ArrayCollection $authCodes;
33+
protected Collection $authCodes;
3434

3535
public function __construct()
3636
{

0 commit comments

Comments
 (0)