1 | <?php |
||
13 | class Session extends \flipbox\saml\core\services\Session |
||
14 | { |
||
15 | |||
16 | const AUTHNREQUEST_KEY = 'authnrequest.message'; |
||
17 | const RELAY_STATE_KEY = 'relaystate'; |
||
18 | |||
19 | /** |
||
20 | * @param AuthnRequest $message |
||
21 | * @return $this |
||
22 | */ |
||
23 | 2 | public function setAuthnRequest(AuthnRequest $message) |
|
31 | |||
32 | /** |
||
33 | * @return AuthnRequest|null |
||
34 | */ |
||
35 | 2 | public function getAuthnRequest() |
|
41 | |||
42 | /** |
||
43 | * @param string $relayState |
||
44 | * @return $this |
||
45 | */ |
||
46 | 2 | public function setRelayState(string $relayState) |
|
54 | |||
55 | /** |
||
56 | * @return string|null |
||
57 | */ |
||
58 | 2 | public function getRelayState() |
|
64 | |||
65 | /** |
||
66 | * @return array |
||
67 | */ |
||
68 | 2 | public function remove() |
|
79 | } |
||
80 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: