I have written code for SSO in magento 2.3 and for handling response from differnt IDPs like okta, keycloak I have done following code:
if(!(@$xpath->query('/saml2p:Response',$xml))) {
$status = SAML2Utilities::xpQuery($xml, './samlp:Status/samlp:StatusCode');
}
else{
$status = SAML2Utilities::xpQuery($xml, './saml2p:Status/saml2p:StatusCode');
}
My code is working fine, I can login through different IDPs, but when I checked php coding standard for magento 2 I am getting following error: 'Silencing errors is discouraged; found: @$xpath->query... ' How to resolve this?