Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7a2bc24

Browse files
committedSep 22, 2023
Add missing types
1 parent 284a026 commit 7a2bc24

File tree

3 files changed

+13
-29
lines changed

3 files changed

+13
-29
lines changed
 

‎src/Authentication.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ public function terminate(
150150
return $terminationResult;
151151
}
152152

153-
/**
154-
* {@inheritdoc}
155-
*/
156153
public function getAdapters(): iterable
157154
{
158155
return $this->adapters;

‎src/AuthenticationResult/Transport/Authorization/AuthorizationTransport.php

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,28 @@
1717

1818
class AuthorizationTransport extends Transport implements AuthorizationTransportInterface
1919
{
20-
/**
21-
* @var AuthenticatedUserInterface
22-
*/
23-
private $authenticated_user;
24-
25-
/**
26-
* @var AuthenticationResultInterface
27-
*/
28-
private $authenticated_with;
29-
30-
/**
31-
* AuthenticationTransport constructor.
32-
*
33-
* @param AdapterInterface $adapter
34-
* @param AuthenticatedUserInterface $authenticated_user
35-
* @param AuthenticationResultInterface $authenticated_with
36-
* @param mixed $payload
37-
*/
38-
public function __construct(AdapterInterface $adapter, AuthenticatedUserInterface $authenticated_user, AuthenticationResultInterface $authenticated_with, $payload = null)
20+
private AuthenticatedUserInterface $authenticated_user;
21+
private AuthenticationResultInterface $authenticated_with;
22+
23+
public function __construct(
24+
AdapterInterface $adapter,
25+
AuthenticatedUserInterface $authenticated_user,
26+
AuthenticationResultInterface $authenticated_with,
27+
array $payload = null,
28+
)
3929
{
4030
parent::__construct($adapter, $payload);
4131

4232
$this->authenticated_user = $authenticated_user;
4333
$this->authenticated_with = $authenticated_with;
4434
}
4535

46-
public function getAuthenticatedUser(): ?AuthenticatedUserInterface
36+
public function getAuthenticatedUser(): AuthenticatedUserInterface
4737
{
4838
return $this->authenticated_user;
4939
}
5040

51-
/**
52-
* {@inheritdoc}
53-
*/
54-
public function getAuthenticatedWith()
41+
public function getAuthenticatedWith(): AuthenticationResultInterface
5542
{
5643
return $this->authenticated_with;
5744
}

‎src/AuthenticationResult/Transport/Authorization/AuthorizationTransportInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ interface AuthorizationTransportInterface extends TransportInterface
1919
/**
2020
* @return AuthenticatedUserInterface
2121
*/
22-
public function getAuthenticatedUser();
22+
public function getAuthenticatedUser(): AuthenticatedUserInterface;
2323

2424
/**
2525
* @return AuthenticationResultInterface
2626
*/
27-
public function getAuthenticatedWith();
27+
public function getAuthenticatedWith(): AuthenticationResultInterface;
2828
}

0 commit comments

Comments
 (0)
Please sign in to comment.