Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | protected function doExecute(ProfileContext $context) |
||
27 | { |
||
28 | $logoutRequest = MessageContextHelper::asLogoutRequest($context->getOutboundContext()); |
||
|
|||
29 | $ssoSessionState = $context->getLogoutSsoSessionState(); |
||
30 | |||
31 | $logoutRequest->setSessionIndex($ssoSessionState->getSessionIndex()); |
||
32 | } |
||
33 | } |
||
34 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: