File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 77use Api \App \Repository \OAuthAccessTokenRepository ;
88use DateTimeImmutable ;
99use Doctrine \Common \Collections \ArrayCollection ;
10+ use Doctrine \Common \Collections \Collection ;
1011use Doctrine \Common \Collections \Criteria ;
1112use Doctrine \ORM \Mapping as ORM ;
1213use 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 ;
Original file line number Diff line number Diff line change 77use Api \App \Repository \OAuthAuthCodeRepository ;
88use DateTimeImmutable ;
99use Doctrine \Common \Collections \ArrayCollection ;
10+ use Doctrine \Common \Collections \Collection ;
1011use Doctrine \Common \Collections \Criteria ;
1112use Doctrine \ORM \Mapping as ORM ;
1213use 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 ;
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments