1 | <?php |
||
25 | class SamlToken extends AbstractToken |
||
26 | { |
||
27 | /** |
||
28 | * @var \SAML2_Assertion |
||
29 | */ |
||
30 | public $assertion; |
||
31 | |||
32 | /** |
||
33 | * @var \Surfnet\StepupBundle\Value\Loa |
||
34 | */ |
||
35 | private $loa; |
||
36 | |||
37 | /** |
||
38 | * @var InstitutionConfigurationOptions |
||
39 | */ |
||
40 | private $institutionConfigurationOptions; |
||
41 | |||
42 | public function __construct(Loa $loa, array $roles = []) |
||
49 | |||
50 | public function setInstitutionConfigurationOptions(InstitutionConfigurationOptions $institutionConfigurationOptions) |
||
54 | |||
55 | /** |
||
56 | * @return InstitutionConfigurationOptions |
||
57 | */ |
||
58 | public function getInstitutionConfigurationOptions() |
||
62 | |||
63 | /** |
||
64 | * Returns the user credentials. |
||
65 | * |
||
66 | * @return mixed The user credentials |
||
67 | */ |
||
68 | public function getCredentials() |
||
72 | |||
73 | /** |
||
74 | * @return Loa |
||
75 | */ |
||
76 | public function getLoa() |
||
80 | |||
81 | public function serialize() |
||
85 | |||
86 | public function unserialize($serialized) |
||
92 | } |
||
93 |
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: