1 | <?php |
||
28 | class SamlToken extends AbstractToken |
||
29 | { |
||
30 | /** |
||
31 | * @var \SAML2\Assertion |
||
32 | */ |
||
33 | public $assertion; |
||
34 | |||
35 | /** |
||
36 | * @var \Surfnet\StepupBundle\Value\Loa |
||
37 | */ |
||
38 | private $loa; |
||
39 | |||
40 | /** |
||
41 | * @var InstitutionConfigurationOptions |
||
42 | */ |
||
43 | private $institutionConfigurationOptions; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | private $raManagementInstitution; |
||
49 | |||
50 | /** |
||
51 | * The identity institution is set with the SHO of the identity. This value is not overridden like the user |
||
52 | * institution can be. This value can be used to get the identities institution regardless of the scope it |
||
53 | * is performing RAA tasks for at this moment. |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | private $schacHomeOrganization; |
||
58 | |||
59 | |||
60 | public function __construct( |
||
73 | |||
74 | /** |
||
75 | * @return InstitutionConfigurationOptions |
||
76 | */ |
||
77 | public function getInstitutionConfigurationOptions() |
||
81 | |||
82 | /** |
||
83 | * @param string $institution |
||
84 | * @param InstitutionConfigurationOptions $institutionConfigurationOptions |
||
85 | */ |
||
86 | public function changeInstitutionScope( |
||
109 | |||
110 | /** |
||
111 | * Returns the user credentials. |
||
112 | * |
||
113 | * @return mixed The user credentials |
||
114 | */ |
||
115 | public function getCredentials() |
||
119 | |||
120 | /** |
||
121 | * @return Loa |
||
122 | */ |
||
123 | public function getLoa() |
||
127 | |||
128 | public function serialize() |
||
140 | |||
141 | public function unserialize($serialized) |
||
155 | |||
156 | /** |
||
157 | * @return string |
||
158 | */ |
||
159 | public function getRaManagementInstitution() |
||
166 | |||
167 | /** |
||
168 | * @return string |
||
169 | */ |
||
170 | public function getSchacHomeInstitution() |
||
174 | |||
175 | /** |
||
176 | * @return string |
||
177 | */ |
||
178 | public function getIdentityOriginalInstitution() |
||
186 | |||
187 | /** |
||
188 | * @return string |
||
189 | */ |
||
190 | private function isUserSraa() |
||
203 | } |
||
204 |
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: