1 | <?php |
||
14 | final class DefaultTokenService implements TokenService |
||
15 | { |
||
16 | /** |
||
17 | * @var InstallationService |
||
18 | */ |
||
19 | private $installation; |
||
20 | |||
21 | /** |
||
22 | * @var TokenStorage |
||
23 | */ |
||
24 | private $tokenStorage; |
||
25 | |||
26 | /** |
||
27 | * @var CertificateStorage |
||
28 | */ |
||
29 | private $certificateStorage; |
||
30 | |||
31 | /** |
||
32 | * @param InstallationService $installation |
||
33 | * @param TokenStorage $tokenStorage |
||
34 | * @param CertificateStorage $certificateStorage |
||
35 | */ |
||
36 | public function __construct( |
||
45 | |||
46 | /** |
||
47 | * @return Token |
||
48 | */ |
||
49 | public function sessionToken() |
||
57 | |||
58 | /** |
||
59 | * @return Token |
||
60 | */ |
||
61 | private function obtainNewSessionToken() |
||
70 | |||
71 | /** |
||
72 | * @return Token |
||
73 | */ |
||
74 | private function installationToken() |
||
87 | |||
88 | /** |
||
89 | * @return Token |
||
90 | */ |
||
91 | private function obtainNewInstallationToken() |
||
103 | } |
||
104 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: