@@ -247,7 +247,7 @@ class Assertion extends SignedElement
247247 * @param \DOMElement|null $xml The input assertion.
248248 * @throws \Exception
249249 */
250- public function __construct (DOMElement $ xml = null )
250+ public function __construct (? DOMElement $ xml = null )
251251 {
252252 // Create an Issuer
253253 $ issuer = new Issuer ();
@@ -771,7 +771,7 @@ public function getNameId() : ?NameID
771771 * @param \SAML2\XML\saml\NameID|null $nameId The name identifier of the assertion.
772772 * @return void
773773 */
774- public function setNameId (NameID $ nameId = null ) : void
774+ public function setNameId (? NameID $ nameId = null ) : void
775775 {
776776 $ this ->nameId = $ nameId ;
777777 }
@@ -937,7 +937,7 @@ public function getNotBefore() : ?int
937937 * @param int|null $notBefore The earliest timestamp this assertion is valid.
938938 * @return void
939939 */
940- public function setNotBefore (int $ notBefore = null ) : void
940+ public function setNotBefore (? int $ notBefore = null ) : void
941941 {
942942 $ this ->notBefore = $ notBefore ;
943943 }
@@ -965,7 +965,7 @@ public function getNotOnOrAfter() : ?int
965965 * @param int|null $notOnOrAfter The latest timestamp this assertion is valid.
966966 * @return void
967967 */
968- public function setNotOnOrAfter (int $ notOnOrAfter = null ) : void
968+ public function setNotOnOrAfter (? int $ notOnOrAfter = null ) : void
969969 {
970970 $ this ->notOnOrAfter = $ notOnOrAfter ;
971971 }
@@ -1015,7 +1015,7 @@ public function getValidAudiences() : ?array
10151015 * @param array|null $validAudiences The allowed audiences.
10161016 * @return void
10171017 */
1018- public function setValidAudiences (array $ validAudiences = null ) : void
1018+ public function setValidAudiences (? array $ validAudiences = null ) : void
10191019 {
10201020 $ this ->validAudiences = $ validAudiences ;
10211021 }
@@ -1038,7 +1038,7 @@ public function getAuthnInstant() : ?int
10381038 * @param int|null $authnInstant Timestamp the user was authenticated, or NULL if we don't want an AuthnStatement.
10391039 * @return void
10401040 */
1041- public function setAuthnInstant (int $ authnInstant = null ) : void
1041+ public function setAuthnInstant (? int $ authnInstant = null ) : void
10421042 {
10431043 $ this ->authnInstant = $ authnInstant ;
10441044 }
@@ -1066,7 +1066,7 @@ public function getSessionNotOnOrAfter() : ?int
10661066 * @param int|null $sessionNotOnOrAfter The latest timestamp this session is valid.
10671067 * @return void
10681068 */
1069- public function setSessionNotOnOrAfter (int $ sessionNotOnOrAfter = null ) : void
1069+ public function setSessionNotOnOrAfter (? int $ sessionNotOnOrAfter = null ) : void
10701070 {
10711071 $ this ->sessionNotOnOrAfter = $ sessionNotOnOrAfter ;
10721072 }
@@ -1092,7 +1092,7 @@ public function getSessionIndex() : ?string
10921092 * @param string|null $sessionIndex The session index of the user at the IdP.
10931093 * @return void
10941094 */
1095- public function setSessionIndex (string $ sessionIndex = null ) : void
1095+ public function setSessionIndex (? string $ sessionIndex = null ) : void
10961096 {
10971097 $ this ->sessionIndex = $ sessionIndex ;
10981098 }
@@ -1121,7 +1121,7 @@ public function getAuthnContextClassRef() : ?string
11211121 * @param string|null $authnContextClassRef The authentication method.
11221122 * @return void
11231123 */
1124- public function setAuthnContextClassRef (string $ authnContextClassRef = null ) : void
1124+ public function setAuthnContextClassRef (? string $ authnContextClassRef = null ) : void
11251125 {
11261126 $ this ->authnContextClassRef = $ authnContextClassRef ;
11271127 }
@@ -1144,7 +1144,7 @@ public function getSignatureMethod() : ?string
11441144 * @param string|null $signatureMethod
11451145 * @return void
11461146 */
1147- public function setSignatureMethod (string $ signatureMethod = null ) : void
1147+ public function setSignatureMethod (? string $ signatureMethod = null ) : void
11481148 {
11491149 $ this ->signatureMethod = $ signatureMethod ;
11501150 }
@@ -1190,7 +1190,7 @@ public function getAuthnContextDecl() : ?Chunk
11901190 * @throws \Exception
11911191 * @return void
11921192 */
1193- public function setAuthnContextDeclRef (string $ authnContextDeclRef = null ) : void
1193+ public function setAuthnContextDeclRef (? string $ authnContextDeclRef = null ) : void
11941194 {
11951195 if (!empty ($ this ->authnContextDecl )) {
11961196 throw new \Exception (
@@ -1274,7 +1274,7 @@ public function getSignatureData() : ?array
12741274 * @param array|null $signatureData
12751275 * @return void
12761276 */
1277- public function setSignatureData (array $ signatureData = null ) : void
1277+ public function setSignatureData (? array $ signatureData = null ) : void
12781278 {
12791279 $ this ->signatureData = $ signatureData ;
12801280 }
@@ -1394,7 +1394,7 @@ public function getSignatureKey() : ?XMLSecurityKey
13941394 * @param XMLSecurityKey|null $signatureKey
13951395 * @return void
13961396 */
1397- public function setSignatureKey (XMLSecurityKey $ signatureKey = null ) : void
1397+ public function setSignatureKey (? XMLSecurityKey $ signatureKey = null ) : void
13981398 {
13991399 $ this ->signatureKey = $ signatureKey ;
14001400 }
@@ -1418,7 +1418,7 @@ public function getEncryptionKey() : ?XMLSecurityKey
14181418 * @param XMLSecurityKey|null $Key
14191419 * @return void
14201420 */
1421- public function setEncryptionKey (XMLSecurityKey $ Key = null ) : void
1421+ public function setEncryptionKey (? XMLSecurityKey $ Key = null ) : void
14221422 {
14231423 $ this ->encryptionKey = $ Key ;
14241424 }
@@ -1464,7 +1464,7 @@ public function wasSignedAtConstruction() : bool
14641464 * @param \DOMNode|null $parentElement The DOM node the assertion should be created in.
14651465 * @return \DOMElement This assertion.
14661466 */
1467- public function toXML (\DOMNode $ parentElement = null ) : DOMElement
1467+ public function toXML (? \DOMNode $ parentElement = null ) : DOMElement
14681468 {
14691469 if ($ parentElement === null ) {
14701470 $ document = DOMDocumentFactory::create ();
0 commit comments