From 68b2d7f8bbbd091104feafd86e76745e05f3264a Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Mon, 2 Dec 2024 21:17:21 +0100 Subject: [PATCH] Explicit nullable type --- .github/workflows/php.yml | 12 ++++++------ src/XML/auth/AbstractAdditionalContextType.php | 2 +- src/XML/auth/AbstractClaimType.php | 2 +- src/XML/auth/AbstractConstrainedManyValueType.php | 2 +- src/XML/auth/AbstractConstrainedSingleValueType.php | 2 +- src/XML/auth/AbstractConstrainedValueType.php | 2 +- src/XML/auth/AbstractContextItemType.php | 2 +- src/XML/auth/AbstractDescriptionType.php | 2 +- src/XML/auth/AbstractDisplayNameType.php | 2 +- src/XML/auth/AbstractDisplayValueType.php | 2 +- src/XML/auth/AbstractEncryptedValueType.php | 2 +- src/XML/auth/AbstractStructuredValueType.php | 2 +- src/XML/auth/AbstractValueInRangeType.php | 4 ++-- src/XML/fed/AbstractAssertionType.php | 4 ++-- src/XML/fed/AbstractAttributeExtensibleString.php | 2 +- src/XML/fed/AbstractAttributeExtensibleURI.php | 2 +- src/XML/fed/AbstractClaimDialectType.php | 4 ++-- src/XML/fed/AbstractClaimDialectsOfferedType.php | 4 ++-- src/XML/fed/AbstractClaimTypesOfferedType.php | 4 ++-- src/XML/fed/AbstractClaimTypesRequestedType.php | 4 ++-- src/XML/fed/AbstractClientPseudonymType.php | 4 ++-- src/XML/fed/AbstractEndpointType.php | 2 +- .../fed/AbstractFederationMetadataHandlerType.php | 4 ++-- src/XML/fed/AbstractFederationMetadataType.php | 4 ++-- src/XML/fed/AbstractFederationType.php | 4 ++-- src/XML/fed/AbstractFilterPseudonymsType.php | 4 ++-- src/XML/fed/AbstractFreshnessType.php | 4 ++-- src/XML/fed/AbstractIssuerNameType.php | 4 ++-- .../fed/AbstractLogicalServiceNamesOfferedType.php | 4 ++-- src/XML/fed/AbstractProofTokenType.php | 4 ++-- src/XML/fed/AbstractPseudonymBasisType.php | 4 ++-- src/XML/fed/AbstractPseudonymType.php | 4 ++-- src/XML/fed/AbstractReferenceDigestType.php | 2 +- src/XML/fed/AbstractReferenceTokenType.php | 4 ++-- src/XML/fed/AbstractRelativeToType.php | 4 ++-- src/XML/fed/AbstractRequestProofTokenType.php | 4 ++-- src/XML/fed/AbstractRequestPseudonymType.php | 4 ++-- src/XML/fed/AbstractSecurityTokenType.php | 4 ++-- src/XML/fed/AbstractSignOutBasisType.php | 4 ++-- src/XML/fed/AbstractSignOutType.php | 4 ++-- src/XML/fed/AbstractTokenType.php | 4 ++-- src/XML/fed/AbstractTokenTypesOfferedType.php | 4 ++-- src/XML/sp_200507/AbstractEmptyType.php | 2 +- src/XML/sp_200507/AbstractHeaderType.php | 2 +- src/XML/sp_200507/AbstractHttpsTokenType.php | 2 +- src/XML/sp_200507/AbstractIssuedTokenType.php | 2 +- src/XML/sp_200507/AbstractNestedPolicyType.php | 2 +- src/XML/sp_200507/AbstractQNameAssertionType.php | 2 +- .../AbstractRequestSecurityTokenTemplateType.php | 2 +- src/XML/sp_200507/AbstractSePartsType.php | 2 +- .../AbstractSecureConversationTokenType.php | 2 +- src/XML/sp_200507/AbstractSerElementsType.php | 2 +- src/XML/sp_200507/AbstractSpnegoContextTokenType.php | 2 +- src/XML/sp_200507/AbstractTokenAssertionType.php | 2 +- src/XML/sp_200702/AbstractEmptyType.php | 2 +- src/XML/sp_200702/AbstractHeaderType.php | 2 +- src/XML/sp_200702/AbstractIssuedTokenType.php | 2 +- src/XML/sp_200702/AbstractKeyValueTokenType.php | 2 +- src/XML/sp_200702/AbstractNestedPolicyType.php | 2 +- src/XML/sp_200702/AbstractQNameAssertionType.php | 2 +- src/XML/sp_200702/AbstractReqPartsType.php | 2 +- .../AbstractRequestSecurityTokenTemplateType.php | 2 +- src/XML/sp_200702/AbstractSePartsType.php | 2 +- .../AbstractSecureConversationTokenType.php | 2 +- src/XML/sp_200702/AbstractSerElementsType.php | 2 +- src/XML/sp_200702/AbstractSpnegoContextTokenType.php | 2 +- src/XML/sp_200702/AbstractTokenAssertionType.php | 2 +- src/XML/wsa_200408/AbstractAttributedQNameType.php | 2 +- src/XML/wsa_200408/AbstractAttributedURIType.php | 2 +- src/XML/wsa_200408/AbstractEndpointReferenceType.php | 4 ++-- src/XML/wsa_200408/AbstractRelationshipType.php | 2 +- src/XML/wsa_200408/AbstractRetryAfterType.php | 2 +- src/XML/wsa_200408/AbstractServiceNameType.php | 2 +- src/XML/wsa_200408/ReferenceParameters.php | 2 +- src/XML/wsa_200408/ReferenceProperties.php | 2 +- src/XML/wsa_200508/AbstractAttributedLongType.php | 2 +- src/XML/wsa_200508/AbstractAttributedQNameType.php | 2 +- src/XML/wsa_200508/AbstractAttributedURIType.php | 2 +- src/XML/wsa_200508/AbstractEndpointReferenceType.php | 2 +- src/XML/wsa_200508/AbstractProblemActionType.php | 2 +- src/XML/wsa_200508/Metadata.php | 2 +- src/XML/wsa_200508/ReferenceParameters.php | 2 +- src/XML/wsa_200508/RelatesTo.php | 2 +- src/XML/wsa_200508/SoapAction.php | 2 +- src/XML/wsaw/AbstractAnonymousType.php | 2 +- src/XML/wsaw/AbstractAttributedQNameType.php | 2 +- src/XML/wsaw/AbstractServiceNameType.php | 2 +- src/XML/wsaw/Anonymous.php | 2 +- src/XML/wsaw/UsingAddressing.php | 2 +- src/XML/wsp/AbstractOperatorContentType.php | 2 +- src/XML/wsp/AppliesTo.php | 2 +- src/XML/wsp/Policy.php | 2 +- src/XML/wsp/PolicyAttachment.php | 2 +- src/XML/wsp/PolicyReference.php | 2 +- src/XML/wsse/AbstractAttributedString.php | 2 +- src/XML/wsse/AbstractBinarySecurityTokenType.php | 2 +- src/XML/wsse/AbstractEmbeddedType.php | 4 ++-- src/XML/wsse/AbstractEncodedString.php | 2 +- src/XML/wsse/AbstractKeyIdentifierType.php | 2 +- src/XML/wsse/AbstractPasswordString.php | 2 +- src/XML/wsse/AbstractReferenceType.php | 4 ++-- src/XML/wsse/AbstractSecurityHeaderType.php | 4 ++-- src/XML/wsse/AbstractSecurityTokenReferenceType.php | 4 ++-- .../wsse/AbstractTransformationParametersType.php | 4 ++-- src/XML/wsse/AbstractUsernameTokenType.php | 4 ++-- src/XML/wst_200502/AbstractAuthenticatorType.php | 4 ++-- src/XML/wst_200502/AbstractBinaryExchangeType.php | 2 +- src/XML/wst_200502/AbstractBinarySecretType.php | 2 +- src/XML/wst_200502/AbstractCancelTargetType.php | 4 ++-- src/XML/wst_200502/AbstractClaimsType.php | 4 ++-- src/XML/wst_200502/AbstractDelegateToType.php | 4 ++-- src/XML/wst_200502/AbstractEncryptionType.php | 4 ++-- src/XML/wst_200502/AbstractEntropyType.php | 4 ++-- src/XML/wst_200502/AbstractKeyExchangeTokenType.php | 4 ++-- src/XML/wst_200502/AbstractLifetimeType.php | 4 ++-- src/XML/wst_200502/AbstractOnBehalfOfType.php | 4 ++-- src/XML/wst_200502/AbstractParticipantType.php | 4 ++-- src/XML/wst_200502/AbstractParticipantsType.php | 4 ++-- src/XML/wst_200502/AbstractProofEncryptionType.php | 4 ++-- src/XML/wst_200502/AbstractRenewTargetType.php | 4 ++-- src/XML/wst_200502/AbstractRenewingType.php | 4 ++-- ...actRequestSecurityTokenResponseCollectionType.php | 2 +- .../AbstractRequestSecurityTokenResponseType.php | 4 ++-- .../wst_200502/AbstractRequestSecurityTokenType.php | 4 ++-- .../wst_200502/AbstractRequestedProofTokenType.php | 4 ++-- .../wst_200502/AbstractRequestedReferenceType.php | 4 ++-- .../AbstractRequestedSecurityTokenType.php | 4 ++-- src/XML/wst_200502/AbstractSignChallengeType.php | 4 ++-- src/XML/wst_200502/AbstractStatusType.php | 4 ++-- src/XML/wst_200502/AbstractUseKeyType.php | 4 ++-- src/XML/wst_200502/AllowPostdating.php | 2 +- src/XML/wst_200502/RequestKET.php | 2 +- src/XML/wst_200502/RequestedTokenCancelled.php | 2 +- src/XML/wst_200512/AbstractAuthenticatorType.php | 4 ++-- src/XML/wst_200512/AbstractBinaryExchangeType.php | 2 +- src/XML/wst_200512/AbstractBinarySecretType.php | 2 +- src/XML/wst_200512/AbstractCancelTargetType.php | 4 ++-- src/XML/wst_200512/AbstractClaimsType.php | 4 ++-- src/XML/wst_200512/AbstractDelegateToType.php | 4 ++-- src/XML/wst_200512/AbstractEncryptionType.php | 4 ++-- src/XML/wst_200512/AbstractEntropyType.php | 4 ++-- src/XML/wst_200512/AbstractKeyExchangeTokenType.php | 4 ++-- src/XML/wst_200512/AbstractLifetimeType.php | 4 ++-- src/XML/wst_200512/AbstractOnBehalfOfType.php | 4 ++-- src/XML/wst_200512/AbstractParticipantType.php | 4 ++-- src/XML/wst_200512/AbstractParticipantsType.php | 4 ++-- src/XML/wst_200512/AbstractProofEncryptionType.php | 4 ++-- src/XML/wst_200512/AbstractRenewTargetType.php | 4 ++-- src/XML/wst_200512/AbstractRenewingType.php | 4 ++-- .../AbstractRequestSecurityTokenCollectionType.php | 2 +- ...actRequestSecurityTokenResponseCollectionType.php | 2 +- .../AbstractRequestSecurityTokenResponseType.php | 4 ++-- .../wst_200512/AbstractRequestSecurityTokenType.php | 4 ++-- .../wst_200512/AbstractRequestedProofTokenType.php | 4 ++-- .../wst_200512/AbstractRequestedReferenceType.php | 4 ++-- .../AbstractRequestedSecurityTokenType.php | 4 ++-- src/XML/wst_200512/AbstractSignChallengeType.php | 4 ++-- src/XML/wst_200512/AbstractStatusType.php | 4 ++-- src/XML/wst_200512/AbstractUseKeyType.php | 4 ++-- src/XML/wst_200512/AbstractValidateTargetType.php | 4 ++-- src/XML/wst_200512/AllowPostdating.php | 2 +- src/XML/wst_200512/RequestKET.php | 2 +- src/XML/wst_200512/RequestedTokenCancelled.php | 2 +- src/XML/wsu/AbstractAttributedDateTime.php | 2 +- src/XML/wsu/AbstractAttributedURI.php | 2 +- src/XML/wsu/AbstractTimestamp.php | 2 +- src/XML/wsx/GetMetadata.php | 4 ++-- src/XML/wsx/Metadata.php | 4 ++-- src/XML/wsx/MetadataReference.php | 4 ++-- src/XML/wsx/MetadataSection.php | 4 ++-- 170 files changed, 257 insertions(+), 257 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 659180e2..f6a04732 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -50,7 +50,7 @@ jobs: uses: shivammathur/setup-php@v2 with: # Should be the higest supported version, so we can use the newest tools - php-version: '8.3' + php-version: '8.4' tools: composer, composer-require-checker, composer-unused, phpcs extensions: ctype, date, dom, filter, pcre, soap, spl, xml coverage: none @@ -142,7 +142,7 @@ jobs: fail-fast: false matrix: operating-system: [ubuntu-latest] - php-versions: ['8.1', '8.2', '8.3'] + php-versions: ['8.1', '8.2', '8.3', '8.4'] steps: - name: Setup PHP, with composer and extensions @@ -182,15 +182,15 @@ jobs: run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Run unit tests with coverage - if: ${{ matrix.php-versions == '8.3' }} + if: ${{ matrix.php-versions == '8.4' }} run: vendor/bin/phpunit - name: Run unit tests (no coverage) - if: ${{ matrix.php-versions != '8.3' }} + if: ${{ matrix.php-versions != '8.4' }} run: vendor/bin/phpunit --no-coverage - name: Save coverage data - if: ${{ matrix.php-versions == '8.3' }} + if: ${{ matrix.php-versions == '8.4' }} uses: actions/upload-artifact@v4 with: name: coverage-data @@ -204,7 +204,7 @@ jobs: fail-fast: true matrix: operating-system: [windows-latest] - php-versions: ['8.1', '8.2', '8.3'] + php-versions: ['8.1', '8.2', '8.3', '8.4'] steps: - name: Setup PHP, with composer and extensions diff --git a/src/XML/auth/AbstractAdditionalContextType.php b/src/XML/auth/AbstractAdditionalContextType.php index 9f544447..fc25bb80 100644 --- a/src/XML/auth/AbstractAdditionalContextType.php +++ b/src/XML/auth/AbstractAdditionalContextType.php @@ -88,7 +88,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/auth/AbstractClaimType.php b/src/XML/auth/AbstractClaimType.php index 0ec2d50c..c24fe0fe 100644 --- a/src/XML/auth/AbstractClaimType.php +++ b/src/XML/auth/AbstractClaimType.php @@ -216,7 +216,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/auth/AbstractConstrainedManyValueType.php b/src/XML/auth/AbstractConstrainedManyValueType.php index da36103d..8c662b46 100644 --- a/src/XML/auth/AbstractConstrainedManyValueType.php +++ b/src/XML/auth/AbstractConstrainedManyValueType.php @@ -96,7 +96,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/auth/AbstractConstrainedSingleValueType.php b/src/XML/auth/AbstractConstrainedSingleValueType.php index f9583b1a..5c45484d 100644 --- a/src/XML/auth/AbstractConstrainedSingleValueType.php +++ b/src/XML/auth/AbstractConstrainedSingleValueType.php @@ -102,7 +102,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/auth/AbstractConstrainedValueType.php b/src/XML/auth/AbstractConstrainedValueType.php index c9f09341..d6e449d5 100644 --- a/src/XML/auth/AbstractConstrainedValueType.php +++ b/src/XML/auth/AbstractConstrainedValueType.php @@ -127,7 +127,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/auth/AbstractContextItemType.php b/src/XML/auth/AbstractContextItemType.php index af414f28..46e4c9a0 100644 --- a/src/XML/auth/AbstractContextItemType.php +++ b/src/XML/auth/AbstractContextItemType.php @@ -132,7 +132,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/auth/AbstractDescriptionType.php b/src/XML/auth/AbstractDescriptionType.php index 1f765e3c..74745fe5 100644 --- a/src/XML/auth/AbstractDescriptionType.php +++ b/src/XML/auth/AbstractDescriptionType.php @@ -62,7 +62,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/auth/AbstractDisplayNameType.php b/src/XML/auth/AbstractDisplayNameType.php index 3ac8c41b..9c1aa88c 100644 --- a/src/XML/auth/AbstractDisplayNameType.php +++ b/src/XML/auth/AbstractDisplayNameType.php @@ -62,7 +62,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/auth/AbstractDisplayValueType.php b/src/XML/auth/AbstractDisplayValueType.php index 15302587..c925c6f2 100644 --- a/src/XML/auth/AbstractDisplayValueType.php +++ b/src/XML/auth/AbstractDisplayValueType.php @@ -62,7 +62,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/auth/AbstractEncryptedValueType.php b/src/XML/auth/AbstractEncryptedValueType.php index 9c028d03..5992d3db 100644 --- a/src/XML/auth/AbstractEncryptedValueType.php +++ b/src/XML/auth/AbstractEncryptedValueType.php @@ -88,7 +88,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->setAttribute('DescriptionCondition', $this->getDescriptionCondition()); diff --git a/src/XML/auth/AbstractStructuredValueType.php b/src/XML/auth/AbstractStructuredValueType.php index a87f636f..2741d0a6 100644 --- a/src/XML/auth/AbstractStructuredValueType.php +++ b/src/XML/auth/AbstractStructuredValueType.php @@ -73,7 +73,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/auth/AbstractValueInRangeType.php b/src/XML/auth/AbstractValueInRangeType.php index 9fb31d94..f659c748 100644 --- a/src/XML/auth/AbstractValueInRangeType.php +++ b/src/XML/auth/AbstractValueInRangeType.php @@ -79,10 +79,10 @@ public function getValueLowerBound(): ValueLowerBound /** * Add this ValueInRangeType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractAssertionType.php b/src/XML/fed/AbstractAssertionType.php index e7d0131f..ec3d9817 100644 --- a/src/XML/fed/AbstractAssertionType.php +++ b/src/XML/fed/AbstractAssertionType.php @@ -79,10 +79,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this AssertionType to an XML element. * - * @param \DOMElement $parent The element we should append this AssertionType to. + * @param \DOMElement|null $parent The element we should append this AssertionType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractAttributeExtensibleString.php b/src/XML/fed/AbstractAttributeExtensibleString.php index dd77d3a3..b170a07f 100644 --- a/src/XML/fed/AbstractAttributeExtensibleString.php +++ b/src/XML/fed/AbstractAttributeExtensibleString.php @@ -60,7 +60,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/fed/AbstractAttributeExtensibleURI.php b/src/XML/fed/AbstractAttributeExtensibleURI.php index d144cecd..144265a5 100644 --- a/src/XML/fed/AbstractAttributeExtensibleURI.php +++ b/src/XML/fed/AbstractAttributeExtensibleURI.php @@ -60,7 +60,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/fed/AbstractClaimDialectType.php b/src/XML/fed/AbstractClaimDialectType.php index 262ece85..9ea33177 100644 --- a/src/XML/fed/AbstractClaimDialectType.php +++ b/src/XML/fed/AbstractClaimDialectType.php @@ -84,10 +84,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ClaimDialectType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractClaimDialectsOfferedType.php b/src/XML/fed/AbstractClaimDialectsOfferedType.php index 192e2d1e..3fcf08ad 100644 --- a/src/XML/fed/AbstractClaimDialectsOfferedType.php +++ b/src/XML/fed/AbstractClaimDialectsOfferedType.php @@ -84,10 +84,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ClaimDialectsOfferedType to an XML element. * - * @param \DOMElement $parent The element we should append this ClaimDialectsOfferedType to. + * @param \DOMElement|null $parent The element we should append this ClaimDialectsOfferedType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractClaimTypesOfferedType.php b/src/XML/fed/AbstractClaimTypesOfferedType.php index 00743697..f6943ad9 100644 --- a/src/XML/fed/AbstractClaimTypesOfferedType.php +++ b/src/XML/fed/AbstractClaimTypesOfferedType.php @@ -83,10 +83,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ClaimTypesOfferedType to an XML element. * - * @param \DOMElement $parent The element we should append this ClaimTypesOfferedType to. + * @param \DOMElement|null $parent The element we should append this ClaimTypesOfferedType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractClaimTypesRequestedType.php b/src/XML/fed/AbstractClaimTypesRequestedType.php index 310ed790..7baaf340 100644 --- a/src/XML/fed/AbstractClaimTypesRequestedType.php +++ b/src/XML/fed/AbstractClaimTypesRequestedType.php @@ -83,10 +83,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ClaimTypesRequestedType to an XML element. * - * @param \DOMElement $parent The element we should append this ClaimTypesRequestedType to. + * @param \DOMElement|null $parent The element we should append this ClaimTypesRequestedType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractClientPseudonymType.php b/src/XML/fed/AbstractClientPseudonymType.php index 0bfca1f7..5417a619 100644 --- a/src/XML/fed/AbstractClientPseudonymType.php +++ b/src/XML/fed/AbstractClientPseudonymType.php @@ -130,10 +130,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ClientPseudonymType to an XML element. * - * @param \DOMElement $parent The element we should append this FederationMetadataType to. + * @param \DOMElement|null $parent The element we should append this FederationMetadataType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractEndpointType.php b/src/XML/fed/AbstractEndpointType.php index a93e1654..88b39366 100644 --- a/src/XML/fed/AbstractEndpointType.php +++ b/src/XML/fed/AbstractEndpointType.php @@ -65,7 +65,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractFederationMetadataHandlerType.php b/src/XML/fed/AbstractFederationMetadataHandlerType.php index d790ceca..3433f6f3 100644 --- a/src/XML/fed/AbstractFederationMetadataHandlerType.php +++ b/src/XML/fed/AbstractFederationMetadataHandlerType.php @@ -69,10 +69,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this FederationMetadataHandlerType to an XML element. * - * @param \DOMElement $parent The element we should append this FederationMetadataHandlerType to. + * @param \DOMElement|null $parent The element we should append this FederationMetadataHandlerType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractFederationMetadataType.php b/src/XML/fed/AbstractFederationMetadataType.php index 6deb207f..0e95a74e 100644 --- a/src/XML/fed/AbstractFederationMetadataType.php +++ b/src/XML/fed/AbstractFederationMetadataType.php @@ -79,10 +79,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this FederationMetadataType to an XML element. * - * @param \DOMElement $parent The element we should append this FederationMetadataType to. + * @param \DOMElement|null $parent The element we should append this FederationMetadataType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractFederationType.php b/src/XML/fed/AbstractFederationType.php index e31dc8bf..2ad33dfd 100644 --- a/src/XML/fed/AbstractFederationType.php +++ b/src/XML/fed/AbstractFederationType.php @@ -95,10 +95,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this FederationType to an XML element. * - * @param \DOMElement $parent The element we should append this FederationType to. + * @param \DOMElement|null $parent The element we should append this FederationType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractFilterPseudonymsType.php b/src/XML/fed/AbstractFilterPseudonymsType.php index 047f7223..26195e26 100644 --- a/src/XML/fed/AbstractFilterPseudonymsType.php +++ b/src/XML/fed/AbstractFilterPseudonymsType.php @@ -116,10 +116,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this FilterPseudonymsType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractFreshnessType.php b/src/XML/fed/AbstractFreshnessType.php index a1b0b3b6..6b7aa74e 100644 --- a/src/XML/fed/AbstractFreshnessType.php +++ b/src/XML/fed/AbstractFreshnessType.php @@ -104,10 +104,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this IssuerNameType to an XML element. * - * @param \DOMElement $parent The element we should append this issuer name to. + * @param \DOMElement|null $parent The element we should append this issuer name to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/fed/AbstractIssuerNameType.php b/src/XML/fed/AbstractIssuerNameType.php index 71f08f2e..92678806 100644 --- a/src/XML/fed/AbstractIssuerNameType.php +++ b/src/XML/fed/AbstractIssuerNameType.php @@ -73,10 +73,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this IssuerNameType to an XML element. * - * @param \DOMElement $parent The element we should append this issuer name to. + * @param \DOMElement|null $parent The element we should append this issuer name to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); $e->setAttribute('Uri', $this->getUri()); diff --git a/src/XML/fed/AbstractLogicalServiceNamesOfferedType.php b/src/XML/fed/AbstractLogicalServiceNamesOfferedType.php index 20db78e0..243b18da 100644 --- a/src/XML/fed/AbstractLogicalServiceNamesOfferedType.php +++ b/src/XML/fed/AbstractLogicalServiceNamesOfferedType.php @@ -84,10 +84,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this LogicalServiceNamesOfferedType to an XML element. * - * @param \DOMElement $parent The element we should append this LogicalServiceNamesOfferedType to. + * @param \DOMElement|null $parent The element we should append this LogicalServiceNamesOfferedType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractProofTokenType.php b/src/XML/fed/AbstractProofTokenType.php index ed00231f..cdeb86dd 100644 --- a/src/XML/fed/AbstractProofTokenType.php +++ b/src/XML/fed/AbstractProofTokenType.php @@ -73,10 +73,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this AbstractProofTokenType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractPseudonymBasisType.php b/src/XML/fed/AbstractPseudonymBasisType.php index 8f78b3a6..140ef6fa 100644 --- a/src/XML/fed/AbstractPseudonymBasisType.php +++ b/src/XML/fed/AbstractPseudonymBasisType.php @@ -76,10 +76,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this AbstractPseudonymBasisType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractPseudonymType.php b/src/XML/fed/AbstractPseudonymType.php index 04547a6d..decae529 100644 --- a/src/XML/fed/AbstractPseudonymType.php +++ b/src/XML/fed/AbstractPseudonymType.php @@ -110,10 +110,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this PseudonymType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractReferenceDigestType.php b/src/XML/fed/AbstractReferenceDigestType.php index 4990d7e2..d57aa99c 100644 --- a/src/XML/fed/AbstractReferenceDigestType.php +++ b/src/XML/fed/AbstractReferenceDigestType.php @@ -60,7 +60,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/fed/AbstractReferenceTokenType.php b/src/XML/fed/AbstractReferenceTokenType.php index 7d5ddc76..a2f9a40c 100644 --- a/src/XML/fed/AbstractReferenceTokenType.php +++ b/src/XML/fed/AbstractReferenceTokenType.php @@ -137,10 +137,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ReferenceToken to an XML element. * - * @param \DOMElement $parent The element we should append this ReferenceToken to. + * @param \DOMElement|null $parent The element we should append this ReferenceToken to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractRelativeToType.php b/src/XML/fed/AbstractRelativeToType.php index ecd48511..f83f3cb4 100644 --- a/src/XML/fed/AbstractRelativeToType.php +++ b/src/XML/fed/AbstractRelativeToType.php @@ -79,10 +79,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this AbstractRelativeToType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractRequestProofTokenType.php b/src/XML/fed/AbstractRequestProofTokenType.php index 8342cd51..13501915 100644 --- a/src/XML/fed/AbstractRequestProofTokenType.php +++ b/src/XML/fed/AbstractRequestProofTokenType.php @@ -79,10 +79,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this AssertionType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractRequestPseudonymType.php b/src/XML/fed/AbstractRequestPseudonymType.php index 3d325303..6d9847cb 100644 --- a/src/XML/fed/AbstractRequestPseudonymType.php +++ b/src/XML/fed/AbstractRequestPseudonymType.php @@ -105,10 +105,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this AbstractRequestPseudonymType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractSecurityTokenType.php b/src/XML/fed/AbstractSecurityTokenType.php index 81e4d6a1..3bc84181 100644 --- a/src/XML/fed/AbstractSecurityTokenType.php +++ b/src/XML/fed/AbstractSecurityTokenType.php @@ -73,10 +73,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this AbstractSecurityTokenType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractSignOutBasisType.php b/src/XML/fed/AbstractSignOutBasisType.php index 9c622da4..918e5e74 100644 --- a/src/XML/fed/AbstractSignOutBasisType.php +++ b/src/XML/fed/AbstractSignOutBasisType.php @@ -70,10 +70,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this SignOutBasisType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractSignOutType.php b/src/XML/fed/AbstractSignOutType.php index d167a4c7..d32ca350 100644 --- a/src/XML/fed/AbstractSignOutType.php +++ b/src/XML/fed/AbstractSignOutType.php @@ -129,10 +129,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this SignOutType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractTokenType.php b/src/XML/fed/AbstractTokenType.php index ba326602..934daa40 100644 --- a/src/XML/fed/AbstractTokenType.php +++ b/src/XML/fed/AbstractTokenType.php @@ -95,10 +95,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this TokenType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/fed/AbstractTokenTypesOfferedType.php b/src/XML/fed/AbstractTokenTypesOfferedType.php index 34fa0e73..5420ca58 100644 --- a/src/XML/fed/AbstractTokenTypesOfferedType.php +++ b/src/XML/fed/AbstractTokenTypesOfferedType.php @@ -93,10 +93,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this TokenTypesOffered to an XML element. * - * @param \DOMElement $parent The element we should append this TokenTypesOffered to. + * @param \DOMElement|null $parent The element we should append this TokenTypesOffered to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractEmptyType.php b/src/XML/sp_200507/AbstractEmptyType.php index 94fd2b74..c0e389fe 100644 --- a/src/XML/sp_200507/AbstractEmptyType.php +++ b/src/XML/sp_200507/AbstractEmptyType.php @@ -57,7 +57,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { return $this->instantiateParentElement($parent); } diff --git a/src/XML/sp_200507/AbstractHeaderType.php b/src/XML/sp_200507/AbstractHeaderType.php index 75b73d09..937544df 100644 --- a/src/XML/sp_200507/AbstractHeaderType.php +++ b/src/XML/sp_200507/AbstractHeaderType.php @@ -110,7 +110,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractHttpsTokenType.php b/src/XML/sp_200507/AbstractHttpsTokenType.php index 8960c1e3..73712e98 100644 --- a/src/XML/sp_200507/AbstractHttpsTokenType.php +++ b/src/XML/sp_200507/AbstractHttpsTokenType.php @@ -94,7 +94,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractIssuedTokenType.php b/src/XML/sp_200507/AbstractIssuedTokenType.php index dfef26b5..fc10a55b 100644 --- a/src/XML/sp_200507/AbstractIssuedTokenType.php +++ b/src/XML/sp_200507/AbstractIssuedTokenType.php @@ -134,7 +134,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractNestedPolicyType.php b/src/XML/sp_200507/AbstractNestedPolicyType.php index 536989b8..b6ff34ec 100644 --- a/src/XML/sp_200507/AbstractNestedPolicyType.php +++ b/src/XML/sp_200507/AbstractNestedPolicyType.php @@ -70,7 +70,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this AbstractNestedPolicyType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractQNameAssertionType.php b/src/XML/sp_200507/AbstractQNameAssertionType.php index d9672609..5a311ef1 100644 --- a/src/XML/sp_200507/AbstractQNameAssertionType.php +++ b/src/XML/sp_200507/AbstractQNameAssertionType.php @@ -69,7 +69,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractRequestSecurityTokenTemplateType.php b/src/XML/sp_200507/AbstractRequestSecurityTokenTemplateType.php index eacf657e..0a2743b1 100644 --- a/src/XML/sp_200507/AbstractRequestSecurityTokenTemplateType.php +++ b/src/XML/sp_200507/AbstractRequestSecurityTokenTemplateType.php @@ -115,7 +115,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractSePartsType.php b/src/XML/sp_200507/AbstractSePartsType.php index 26a0e691..980f0265 100644 --- a/src/XML/sp_200507/AbstractSePartsType.php +++ b/src/XML/sp_200507/AbstractSePartsType.php @@ -128,7 +128,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractSecureConversationTokenType.php b/src/XML/sp_200507/AbstractSecureConversationTokenType.php index 9ef51dee..8031523a 100644 --- a/src/XML/sp_200507/AbstractSecureConversationTokenType.php +++ b/src/XML/sp_200507/AbstractSecureConversationTokenType.php @@ -128,7 +128,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractSerElementsType.php b/src/XML/sp_200507/AbstractSerElementsType.php index 3e9b4a56..c77ab63a 100644 --- a/src/XML/sp_200507/AbstractSerElementsType.php +++ b/src/XML/sp_200507/AbstractSerElementsType.php @@ -116,7 +116,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractSpnegoContextTokenType.php b/src/XML/sp_200507/AbstractSpnegoContextTokenType.php index 7a19e71f..4daea34d 100644 --- a/src/XML/sp_200507/AbstractSpnegoContextTokenType.php +++ b/src/XML/sp_200507/AbstractSpnegoContextTokenType.php @@ -128,7 +128,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200507/AbstractTokenAssertionType.php b/src/XML/sp_200507/AbstractTokenAssertionType.php index 605a01ab..c25a25d5 100644 --- a/src/XML/sp_200507/AbstractTokenAssertionType.php +++ b/src/XML/sp_200507/AbstractTokenAssertionType.php @@ -91,7 +91,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractEmptyType.php b/src/XML/sp_200702/AbstractEmptyType.php index 9dfa1274..04aa9188 100644 --- a/src/XML/sp_200702/AbstractEmptyType.php +++ b/src/XML/sp_200702/AbstractEmptyType.php @@ -57,7 +57,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { return $this->instantiateParentElement($parent); } diff --git a/src/XML/sp_200702/AbstractHeaderType.php b/src/XML/sp_200702/AbstractHeaderType.php index cb03b568..b5a5413e 100644 --- a/src/XML/sp_200702/AbstractHeaderType.php +++ b/src/XML/sp_200702/AbstractHeaderType.php @@ -110,7 +110,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractIssuedTokenType.php b/src/XML/sp_200702/AbstractIssuedTokenType.php index 9436d370..de39da7e 100644 --- a/src/XML/sp_200702/AbstractIssuedTokenType.php +++ b/src/XML/sp_200702/AbstractIssuedTokenType.php @@ -118,7 +118,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractKeyValueTokenType.php b/src/XML/sp_200702/AbstractKeyValueTokenType.php index 47c6d02d..3c5bea9d 100644 --- a/src/XML/sp_200702/AbstractKeyValueTokenType.php +++ b/src/XML/sp_200702/AbstractKeyValueTokenType.php @@ -91,7 +91,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractNestedPolicyType.php b/src/XML/sp_200702/AbstractNestedPolicyType.php index b28bfb35..91f57955 100644 --- a/src/XML/sp_200702/AbstractNestedPolicyType.php +++ b/src/XML/sp_200702/AbstractNestedPolicyType.php @@ -81,7 +81,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this AbstractNestedPolicyType to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractQNameAssertionType.php b/src/XML/sp_200702/AbstractQNameAssertionType.php index 9e8a4cb6..ecc9a71b 100644 --- a/src/XML/sp_200702/AbstractQNameAssertionType.php +++ b/src/XML/sp_200702/AbstractQNameAssertionType.php @@ -69,7 +69,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractReqPartsType.php b/src/XML/sp_200702/AbstractReqPartsType.php index 8ec79222..a55cbfca 100644 --- a/src/XML/sp_200702/AbstractReqPartsType.php +++ b/src/XML/sp_200702/AbstractReqPartsType.php @@ -111,7 +111,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractRequestSecurityTokenTemplateType.php b/src/XML/sp_200702/AbstractRequestSecurityTokenTemplateType.php index dc649257..46bf6546 100644 --- a/src/XML/sp_200702/AbstractRequestSecurityTokenTemplateType.php +++ b/src/XML/sp_200702/AbstractRequestSecurityTokenTemplateType.php @@ -115,7 +115,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractSePartsType.php b/src/XML/sp_200702/AbstractSePartsType.php index aec9ff00..b275ecd3 100644 --- a/src/XML/sp_200702/AbstractSePartsType.php +++ b/src/XML/sp_200702/AbstractSePartsType.php @@ -145,7 +145,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractSecureConversationTokenType.php b/src/XML/sp_200702/AbstractSecureConversationTokenType.php index 08a07e63..19bde06b 100644 --- a/src/XML/sp_200702/AbstractSecureConversationTokenType.php +++ b/src/XML/sp_200702/AbstractSecureConversationTokenType.php @@ -111,7 +111,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractSerElementsType.php b/src/XML/sp_200702/AbstractSerElementsType.php index ed84ff7a..f703b956 100644 --- a/src/XML/sp_200702/AbstractSerElementsType.php +++ b/src/XML/sp_200702/AbstractSerElementsType.php @@ -116,7 +116,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractSpnegoContextTokenType.php b/src/XML/sp_200702/AbstractSpnegoContextTokenType.php index 5275d5f3..88153041 100644 --- a/src/XML/sp_200702/AbstractSpnegoContextTokenType.php +++ b/src/XML/sp_200702/AbstractSpnegoContextTokenType.php @@ -111,7 +111,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/sp_200702/AbstractTokenAssertionType.php b/src/XML/sp_200702/AbstractTokenAssertionType.php index 5d15e623..1d08b2b5 100644 --- a/src/XML/sp_200702/AbstractTokenAssertionType.php +++ b/src/XML/sp_200702/AbstractTokenAssertionType.php @@ -91,7 +91,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsa_200408/AbstractAttributedQNameType.php b/src/XML/wsa_200408/AbstractAttributedQNameType.php index 6ab6f91a..98144586 100644 --- a/src/XML/wsa_200408/AbstractAttributedQNameType.php +++ b/src/XML/wsa_200408/AbstractAttributedQNameType.php @@ -66,7 +66,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsa_200408/AbstractAttributedURIType.php b/src/XML/wsa_200408/AbstractAttributedURIType.php index 9851c640..9e4d0a3b 100644 --- a/src/XML/wsa_200408/AbstractAttributedURIType.php +++ b/src/XML/wsa_200408/AbstractAttributedURIType.php @@ -65,7 +65,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsa_200408/AbstractEndpointReferenceType.php b/src/XML/wsa_200408/AbstractEndpointReferenceType.php index 0afc2ce6..dcea4bc4 100644 --- a/src/XML/wsa_200408/AbstractEndpointReferenceType.php +++ b/src/XML/wsa_200408/AbstractEndpointReferenceType.php @@ -173,10 +173,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this endpoint reference to an XML element. * - * @param \DOMElement $parent The element we should append this endpoint to. + * @param \DOMElement|null $parent The element we should append this endpoint to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wsa_200408/AbstractRelationshipType.php b/src/XML/wsa_200408/AbstractRelationshipType.php index f91020e5..0a24d08d 100644 --- a/src/XML/wsa_200408/AbstractRelationshipType.php +++ b/src/XML/wsa_200408/AbstractRelationshipType.php @@ -84,7 +84,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsa_200408/AbstractRetryAfterType.php b/src/XML/wsa_200408/AbstractRetryAfterType.php index 801bfd80..c69912da 100644 --- a/src/XML/wsa_200408/AbstractRetryAfterType.php +++ b/src/XML/wsa_200408/AbstractRetryAfterType.php @@ -79,7 +79,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = strval($this->getValue()); diff --git a/src/XML/wsa_200408/AbstractServiceNameType.php b/src/XML/wsa_200408/AbstractServiceNameType.php index eaccfa54..069c5c22 100644 --- a/src/XML/wsa_200408/AbstractServiceNameType.php +++ b/src/XML/wsa_200408/AbstractServiceNameType.php @@ -86,7 +86,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsa_200408/ReferenceParameters.php b/src/XML/wsa_200408/ReferenceParameters.php index 60014eaa..deed2e4d 100644 --- a/src/XML/wsa_200408/ReferenceParameters.php +++ b/src/XML/wsa_200408/ReferenceParameters.php @@ -71,7 +71,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should add this ReferenceParameters to. * @return \DOMElement This Header-element. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsa_200408/ReferenceProperties.php b/src/XML/wsa_200408/ReferenceProperties.php index 12c99108..e1e51d5e 100644 --- a/src/XML/wsa_200408/ReferenceProperties.php +++ b/src/XML/wsa_200408/ReferenceProperties.php @@ -71,7 +71,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should add this ReferenceProperties to. * @return \DOMElement This Header-element. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsa_200508/AbstractAttributedLongType.php b/src/XML/wsa_200508/AbstractAttributedLongType.php index 05d7d335..14bff1f8 100644 --- a/src/XML/wsa_200508/AbstractAttributedLongType.php +++ b/src/XML/wsa_200508/AbstractAttributedLongType.php @@ -81,7 +81,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsa_200508/AbstractAttributedQNameType.php b/src/XML/wsa_200508/AbstractAttributedQNameType.php index 14653fa0..16e403a5 100644 --- a/src/XML/wsa_200508/AbstractAttributedQNameType.php +++ b/src/XML/wsa_200508/AbstractAttributedQNameType.php @@ -66,7 +66,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsa_200508/AbstractAttributedURIType.php b/src/XML/wsa_200508/AbstractAttributedURIType.php index 7064ecd3..b9d72943 100644 --- a/src/XML/wsa_200508/AbstractAttributedURIType.php +++ b/src/XML/wsa_200508/AbstractAttributedURIType.php @@ -65,7 +65,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsa_200508/AbstractEndpointReferenceType.php b/src/XML/wsa_200508/AbstractEndpointReferenceType.php index 9491fdab..126d51d3 100644 --- a/src/XML/wsa_200508/AbstractEndpointReferenceType.php +++ b/src/XML/wsa_200508/AbstractEndpointReferenceType.php @@ -142,7 +142,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement $parent The element we should append this endpoint to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wsa_200508/AbstractProblemActionType.php b/src/XML/wsa_200508/AbstractProblemActionType.php index 5fbe3929..6914e62d 100644 --- a/src/XML/wsa_200508/AbstractProblemActionType.php +++ b/src/XML/wsa_200508/AbstractProblemActionType.php @@ -58,7 +58,7 @@ public function isEmptyElement(): bool * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsa_200508/Metadata.php b/src/XML/wsa_200508/Metadata.php index e6672b3f..a2a2286a 100644 --- a/src/XML/wsa_200508/Metadata.php +++ b/src/XML/wsa_200508/Metadata.php @@ -79,7 +79,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should add this Metadata to. * @return \DOMElement This Metadata-element. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsa_200508/ReferenceParameters.php b/src/XML/wsa_200508/ReferenceParameters.php index eaebaced..2ecc8006 100644 --- a/src/XML/wsa_200508/ReferenceParameters.php +++ b/src/XML/wsa_200508/ReferenceParameters.php @@ -79,7 +79,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should add this ReferenceParameters to. * @return \DOMElement This Header-element. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsa_200508/RelatesTo.php b/src/XML/wsa_200508/RelatesTo.php index 0310ebc7..d3e04f8c 100644 --- a/src/XML/wsa_200508/RelatesTo.php +++ b/src/XML/wsa_200508/RelatesTo.php @@ -91,7 +91,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should add this RelatesTo to. * @return \DOMElement This Header-element. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsa_200508/SoapAction.php b/src/XML/wsa_200508/SoapAction.php index f5acf2f7..5f07a2b0 100644 --- a/src/XML/wsa_200508/SoapAction.php +++ b/src/XML/wsa_200508/SoapAction.php @@ -52,7 +52,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsaw/AbstractAnonymousType.php b/src/XML/wsaw/AbstractAnonymousType.php index acc2bee2..152c6d8f 100644 --- a/src/XML/wsaw/AbstractAnonymousType.php +++ b/src/XML/wsaw/AbstractAnonymousType.php @@ -39,7 +39,7 @@ public function getValue(): AnonymousEnum * @param \DOMElement|null $parent The element we should append this class to. * @return \DOMElement The XML element after adding the data corresponding to this Anonymous. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getValue()->value; diff --git a/src/XML/wsaw/AbstractAttributedQNameType.php b/src/XML/wsaw/AbstractAttributedQNameType.php index 458ccda5..e5fa6a29 100644 --- a/src/XML/wsaw/AbstractAttributedQNameType.php +++ b/src/XML/wsaw/AbstractAttributedQNameType.php @@ -44,7 +44,7 @@ public function __construct( * @param \DOMElement|null $parent The element we should append this class to. * @return \DOMElement The XML element after adding the data corresponding to this AttributedQNameType. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsaw/AbstractServiceNameType.php b/src/XML/wsaw/AbstractServiceNameType.php index 9ab18712..811b7281 100644 --- a/src/XML/wsaw/AbstractServiceNameType.php +++ b/src/XML/wsaw/AbstractServiceNameType.php @@ -61,7 +61,7 @@ public function getEndpointName(): ?string * @param \DOMElement|null $parent The element we should append this class to. * @return \DOMElement The XML element after adding the data corresponding to this ServiceNameType. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsaw/Anonymous.php b/src/XML/wsaw/Anonymous.php index 0914d947..6c03c076 100644 --- a/src/XML/wsaw/Anonymous.php +++ b/src/XML/wsaw/Anonymous.php @@ -74,7 +74,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this class to. * @return \DOMElement The XML element after adding the data corresponding to this Anonymous. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::toXML($parent); diff --git a/src/XML/wsaw/UsingAddressing.php b/src/XML/wsaw/UsingAddressing.php index 045724a8..c49320d4 100644 --- a/src/XML/wsaw/UsingAddressing.php +++ b/src/XML/wsaw/UsingAddressing.php @@ -59,7 +59,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this class to. * @return \DOMElement The XML element after adding the data corresponding to this UsingAddressing. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsp/AbstractOperatorContentType.php b/src/XML/wsp/AbstractOperatorContentType.php index 54e2c1db..99fd8367 100644 --- a/src/XML/wsp/AbstractOperatorContentType.php +++ b/src/XML/wsp/AbstractOperatorContentType.php @@ -126,7 +126,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should add this wsp:OperatorContentType to. * @return \DOMElement This wsp:AbstractOperatorContentType element. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsp/AppliesTo.php b/src/XML/wsp/AppliesTo.php index 8a20f037..78b3719b 100644 --- a/src/XML/wsp/AppliesTo.php +++ b/src/XML/wsp/AppliesTo.php @@ -79,7 +79,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should add this wsp:AppliesTo to. * @return \DOMElement This wsp:AppliesTo element. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsp/Policy.php b/src/XML/wsp/Policy.php index 6d4c5be4..19b1163d 100644 --- a/src/XML/wsp/Policy.php +++ b/src/XML/wsp/Policy.php @@ -158,7 +158,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should add this wsp:Policy to * @return \DOMElement This wsp:Policy element. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::toXML($parent); diff --git a/src/XML/wsp/PolicyAttachment.php b/src/XML/wsp/PolicyAttachment.php index 1dfc1fb6..3e1a6fbb 100644 --- a/src/XML/wsp/PolicyAttachment.php +++ b/src/XML/wsp/PolicyAttachment.php @@ -115,7 +115,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should add this wsp:AppliesTo to. * @return \DOMElement This wsp:AppliesTo element. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsp/PolicyReference.php b/src/XML/wsp/PolicyReference.php index dd170b6d..e06e720f 100644 --- a/src/XML/wsp/PolicyReference.php +++ b/src/XML/wsp/PolicyReference.php @@ -120,7 +120,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should add this wsp:Policy to * @return \DOMElement This wsp:PolicyReference element. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->setAttribute('URI', $this->getURI()); diff --git a/src/XML/wsse/AbstractAttributedString.php b/src/XML/wsse/AbstractAttributedString.php index a5e3bc59..eb2b85f2 100644 --- a/src/XML/wsse/AbstractAttributedString.php +++ b/src/XML/wsse/AbstractAttributedString.php @@ -92,7 +92,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsse/AbstractBinarySecurityTokenType.php b/src/XML/wsse/AbstractBinarySecurityTokenType.php index b9df8547..8dbef2a8 100644 --- a/src/XML/wsse/AbstractBinarySecurityTokenType.php +++ b/src/XML/wsse/AbstractBinarySecurityTokenType.php @@ -94,7 +94,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::toXML($parent); diff --git a/src/XML/wsse/AbstractEmbeddedType.php b/src/XML/wsse/AbstractEmbeddedType.php index 888f465b..6bfca203 100644 --- a/src/XML/wsse/AbstractEmbeddedType.php +++ b/src/XML/wsse/AbstractEmbeddedType.php @@ -95,10 +95,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this username token to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wsse/AbstractEncodedString.php b/src/XML/wsse/AbstractEncodedString.php index 61e36991..b411f465 100644 --- a/src/XML/wsse/AbstractEncodedString.php +++ b/src/XML/wsse/AbstractEncodedString.php @@ -85,7 +85,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::toXML($parent); diff --git a/src/XML/wsse/AbstractKeyIdentifierType.php b/src/XML/wsse/AbstractKeyIdentifierType.php index ec478d46..b190492b 100644 --- a/src/XML/wsse/AbstractKeyIdentifierType.php +++ b/src/XML/wsse/AbstractKeyIdentifierType.php @@ -89,7 +89,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::toXML($parent); diff --git a/src/XML/wsse/AbstractPasswordString.php b/src/XML/wsse/AbstractPasswordString.php index dd8cc5b6..2781247a 100644 --- a/src/XML/wsse/AbstractPasswordString.php +++ b/src/XML/wsse/AbstractPasswordString.php @@ -84,7 +84,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::toXML($parent); diff --git a/src/XML/wsse/AbstractReferenceType.php b/src/XML/wsse/AbstractReferenceType.php index c5e3de48..74dd59f8 100644 --- a/src/XML/wsse/AbstractReferenceType.php +++ b/src/XML/wsse/AbstractReferenceType.php @@ -86,10 +86,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this username token to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wsse/AbstractSecurityHeaderType.php b/src/XML/wsse/AbstractSecurityHeaderType.php index 31b2e2e8..34864489 100644 --- a/src/XML/wsse/AbstractSecurityHeaderType.php +++ b/src/XML/wsse/AbstractSecurityHeaderType.php @@ -79,10 +79,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this SecurityHeaderType token to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wsse/AbstractSecurityTokenReferenceType.php b/src/XML/wsse/AbstractSecurityTokenReferenceType.php index e77a9589..75d943f9 100644 --- a/src/XML/wsse/AbstractSecurityTokenReferenceType.php +++ b/src/XML/wsse/AbstractSecurityTokenReferenceType.php @@ -109,10 +109,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this SecurityTokenReferenceType token to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wsse/AbstractTransformationParametersType.php b/src/XML/wsse/AbstractTransformationParametersType.php index 846799f3..b0bd0bb2 100644 --- a/src/XML/wsse/AbstractTransformationParametersType.php +++ b/src/XML/wsse/AbstractTransformationParametersType.php @@ -78,10 +78,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this username token to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wsse/AbstractUsernameTokenType.php b/src/XML/wsse/AbstractUsernameTokenType.php index 9f352dd9..3a7e8535 100644 --- a/src/XML/wsse/AbstractUsernameTokenType.php +++ b/src/XML/wsse/AbstractUsernameTokenType.php @@ -114,10 +114,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this username token to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractAuthenticatorType.php b/src/XML/wst_200502/AbstractAuthenticatorType.php index 9ac9f436..153b1cab 100644 --- a/src/XML/wst_200502/AbstractAuthenticatorType.php +++ b/src/XML/wst_200502/AbstractAuthenticatorType.php @@ -86,10 +86,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this AuthenticatorType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractBinaryExchangeType.php b/src/XML/wst_200502/AbstractBinaryExchangeType.php index 77131145..3d8565cc 100644 --- a/src/XML/wst_200502/AbstractBinaryExchangeType.php +++ b/src/XML/wst_200502/AbstractBinaryExchangeType.php @@ -97,7 +97,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wst_200502/AbstractBinarySecretType.php b/src/XML/wst_200502/AbstractBinarySecretType.php index 971e3a8b..bd87e4db 100644 --- a/src/XML/wst_200502/AbstractBinarySecretType.php +++ b/src/XML/wst_200502/AbstractBinarySecretType.php @@ -98,7 +98,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wst_200502/AbstractCancelTargetType.php b/src/XML/wst_200502/AbstractCancelTargetType.php index 0b118aa0..f9595fbe 100644 --- a/src/XML/wst_200502/AbstractCancelTargetType.php +++ b/src/XML/wst_200502/AbstractCancelTargetType.php @@ -67,10 +67,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this CancelTargetType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractClaimsType.php b/src/XML/wst_200502/AbstractClaimsType.php index e2333d83..e18b1fe2 100644 --- a/src/XML/wst_200502/AbstractClaimsType.php +++ b/src/XML/wst_200502/AbstractClaimsType.php @@ -95,10 +95,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ClaimsType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractDelegateToType.php b/src/XML/wst_200502/AbstractDelegateToType.php index 26cdfc5c..8a690966 100644 --- a/src/XML/wst_200502/AbstractDelegateToType.php +++ b/src/XML/wst_200502/AbstractDelegateToType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this DelegateToType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractEncryptionType.php b/src/XML/wst_200502/AbstractEncryptionType.php index e8e3a287..c11dec20 100644 --- a/src/XML/wst_200502/AbstractEncryptionType.php +++ b/src/XML/wst_200502/AbstractEncryptionType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this EncryptionType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractEntropyType.php b/src/XML/wst_200502/AbstractEntropyType.php index e498287b..f248e941 100644 --- a/src/XML/wst_200502/AbstractEntropyType.php +++ b/src/XML/wst_200502/AbstractEntropyType.php @@ -79,10 +79,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this EntropyType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractKeyExchangeTokenType.php b/src/XML/wst_200502/AbstractKeyExchangeTokenType.php index 946616e9..05cc4052 100644 --- a/src/XML/wst_200502/AbstractKeyExchangeTokenType.php +++ b/src/XML/wst_200502/AbstractKeyExchangeTokenType.php @@ -69,10 +69,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this KeyExchangeTokenType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractLifetimeType.php b/src/XML/wst_200502/AbstractLifetimeType.php index d96cfbd1..8cefd902 100644 --- a/src/XML/wst_200502/AbstractLifetimeType.php +++ b/src/XML/wst_200502/AbstractLifetimeType.php @@ -92,10 +92,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this LifetimeType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractOnBehalfOfType.php b/src/XML/wst_200502/AbstractOnBehalfOfType.php index f47946a9..90ce4530 100644 --- a/src/XML/wst_200502/AbstractOnBehalfOfType.php +++ b/src/XML/wst_200502/AbstractOnBehalfOfType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this OnBehalfOfType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractParticipantType.php b/src/XML/wst_200502/AbstractParticipantType.php index de40a4a1..3e883149 100644 --- a/src/XML/wst_200502/AbstractParticipantType.php +++ b/src/XML/wst_200502/AbstractParticipantType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ParticipantType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractParticipantsType.php b/src/XML/wst_200502/AbstractParticipantsType.php index 1b6140cf..d519d74f 100644 --- a/src/XML/wst_200502/AbstractParticipantsType.php +++ b/src/XML/wst_200502/AbstractParticipantsType.php @@ -99,10 +99,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ParticipantsType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractProofEncryptionType.php b/src/XML/wst_200502/AbstractProofEncryptionType.php index a53dbf2b..dfea8a6e 100644 --- a/src/XML/wst_200502/AbstractProofEncryptionType.php +++ b/src/XML/wst_200502/AbstractProofEncryptionType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ProofEncryptionType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractRenewTargetType.php b/src/XML/wst_200502/AbstractRenewTargetType.php index 6c047e0b..807ccb43 100644 --- a/src/XML/wst_200502/AbstractRenewTargetType.php +++ b/src/XML/wst_200502/AbstractRenewTargetType.php @@ -67,10 +67,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RenewTargetType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractRenewingType.php b/src/XML/wst_200502/AbstractRenewingType.php index fe49ec04..1c7bff6b 100644 --- a/src/XML/wst_200502/AbstractRenewingType.php +++ b/src/XML/wst_200502/AbstractRenewingType.php @@ -82,10 +82,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this UseKeyType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractRequestSecurityTokenResponseCollectionType.php b/src/XML/wst_200502/AbstractRequestSecurityTokenResponseCollectionType.php index 33aae0b4..e68111a2 100644 --- a/src/XML/wst_200502/AbstractRequestSecurityTokenResponseCollectionType.php +++ b/src/XML/wst_200502/AbstractRequestSecurityTokenResponseCollectionType.php @@ -82,7 +82,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractRequestSecurityTokenResponseType.php b/src/XML/wst_200502/AbstractRequestSecurityTokenResponseType.php index 0c93349f..e6d0f650 100644 --- a/src/XML/wst_200502/AbstractRequestSecurityTokenResponseType.php +++ b/src/XML/wst_200502/AbstractRequestSecurityTokenResponseType.php @@ -95,10 +95,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RequestSecurityTokenResponseType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractRequestSecurityTokenType.php b/src/XML/wst_200502/AbstractRequestSecurityTokenType.php index d088f0f7..5c6d59ed 100644 --- a/src/XML/wst_200502/AbstractRequestSecurityTokenType.php +++ b/src/XML/wst_200502/AbstractRequestSecurityTokenType.php @@ -97,10 +97,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RequestSecurityTokenType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractRequestedProofTokenType.php b/src/XML/wst_200502/AbstractRequestedProofTokenType.php index d83c6a69..560ee338 100644 --- a/src/XML/wst_200502/AbstractRequestedProofTokenType.php +++ b/src/XML/wst_200502/AbstractRequestedProofTokenType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RequestedProofTokenType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractRequestedReferenceType.php b/src/XML/wst_200502/AbstractRequestedReferenceType.php index 3472225b..09774e28 100644 --- a/src/XML/wst_200502/AbstractRequestedReferenceType.php +++ b/src/XML/wst_200502/AbstractRequestedReferenceType.php @@ -67,10 +67,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RequestedReferenceType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractRequestedSecurityTokenType.php b/src/XML/wst_200502/AbstractRequestedSecurityTokenType.php index f6e4cbd6..0b274d78 100644 --- a/src/XML/wst_200502/AbstractRequestedSecurityTokenType.php +++ b/src/XML/wst_200502/AbstractRequestedSecurityTokenType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RequestedSecurityTokenType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractSignChallengeType.php b/src/XML/wst_200502/AbstractSignChallengeType.php index 223338da..8e413775 100644 --- a/src/XML/wst_200502/AbstractSignChallengeType.php +++ b/src/XML/wst_200502/AbstractSignChallengeType.php @@ -102,10 +102,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this SignChallengeType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractStatusType.php b/src/XML/wst_200502/AbstractStatusType.php index b4e823ea..7f5a54e5 100644 --- a/src/XML/wst_200502/AbstractStatusType.php +++ b/src/XML/wst_200502/AbstractStatusType.php @@ -80,10 +80,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this UseKeyType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AbstractUseKeyType.php b/src/XML/wst_200502/AbstractUseKeyType.php index e5f5c989..9a2d61f8 100644 --- a/src/XML/wst_200502/AbstractUseKeyType.php +++ b/src/XML/wst_200502/AbstractUseKeyType.php @@ -92,10 +92,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this UseKeyType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200502/AllowPostdating.php b/src/XML/wst_200502/AllowPostdating.php index f41e415d..647291b2 100644 --- a/src/XML/wst_200502/AllowPostdating.php +++ b/src/XML/wst_200502/AllowPostdating.php @@ -39,7 +39,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { return $this->instantiateParentElement($parent); } diff --git a/src/XML/wst_200502/RequestKET.php b/src/XML/wst_200502/RequestKET.php index 961b9e53..25f01aad 100644 --- a/src/XML/wst_200502/RequestKET.php +++ b/src/XML/wst_200502/RequestKET.php @@ -39,7 +39,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { return $this->instantiateParentElement($parent); } diff --git a/src/XML/wst_200502/RequestedTokenCancelled.php b/src/XML/wst_200502/RequestedTokenCancelled.php index bb5c9e55..f8a1c12e 100644 --- a/src/XML/wst_200502/RequestedTokenCancelled.php +++ b/src/XML/wst_200502/RequestedTokenCancelled.php @@ -39,7 +39,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { return $this->instantiateParentElement($parent); } diff --git a/src/XML/wst_200512/AbstractAuthenticatorType.php b/src/XML/wst_200512/AbstractAuthenticatorType.php index d300524f..ef3ffa59 100644 --- a/src/XML/wst_200512/AbstractAuthenticatorType.php +++ b/src/XML/wst_200512/AbstractAuthenticatorType.php @@ -86,10 +86,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this AuthenticatorType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractBinaryExchangeType.php b/src/XML/wst_200512/AbstractBinaryExchangeType.php index 4b52ca61..c227c3b5 100644 --- a/src/XML/wst_200512/AbstractBinaryExchangeType.php +++ b/src/XML/wst_200512/AbstractBinaryExchangeType.php @@ -97,7 +97,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wst_200512/AbstractBinarySecretType.php b/src/XML/wst_200512/AbstractBinarySecretType.php index 301af111..85a64591 100644 --- a/src/XML/wst_200512/AbstractBinarySecretType.php +++ b/src/XML/wst_200512/AbstractBinarySecretType.php @@ -98,7 +98,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wst_200512/AbstractCancelTargetType.php b/src/XML/wst_200512/AbstractCancelTargetType.php index e52af44f..042f8067 100644 --- a/src/XML/wst_200512/AbstractCancelTargetType.php +++ b/src/XML/wst_200512/AbstractCancelTargetType.php @@ -67,10 +67,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this CancelTargetType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractClaimsType.php b/src/XML/wst_200512/AbstractClaimsType.php index b5756a87..deb9d016 100644 --- a/src/XML/wst_200512/AbstractClaimsType.php +++ b/src/XML/wst_200512/AbstractClaimsType.php @@ -95,10 +95,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ClaimsType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractDelegateToType.php b/src/XML/wst_200512/AbstractDelegateToType.php index 50ee0570..bd44b9de 100644 --- a/src/XML/wst_200512/AbstractDelegateToType.php +++ b/src/XML/wst_200512/AbstractDelegateToType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this DelegateToType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractEncryptionType.php b/src/XML/wst_200512/AbstractEncryptionType.php index ebf4dfcf..43427d2b 100644 --- a/src/XML/wst_200512/AbstractEncryptionType.php +++ b/src/XML/wst_200512/AbstractEncryptionType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this EncryptionType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractEntropyType.php b/src/XML/wst_200512/AbstractEntropyType.php index ab31ea13..43e155e7 100644 --- a/src/XML/wst_200512/AbstractEntropyType.php +++ b/src/XML/wst_200512/AbstractEntropyType.php @@ -79,10 +79,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this EntropyType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractKeyExchangeTokenType.php b/src/XML/wst_200512/AbstractKeyExchangeTokenType.php index a3a66e96..eeb894a1 100644 --- a/src/XML/wst_200512/AbstractKeyExchangeTokenType.php +++ b/src/XML/wst_200512/AbstractKeyExchangeTokenType.php @@ -69,10 +69,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this KeyExchangeTokenType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractLifetimeType.php b/src/XML/wst_200512/AbstractLifetimeType.php index 3795b495..ba56fd4b 100644 --- a/src/XML/wst_200512/AbstractLifetimeType.php +++ b/src/XML/wst_200512/AbstractLifetimeType.php @@ -92,10 +92,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this LifetimeType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractOnBehalfOfType.php b/src/XML/wst_200512/AbstractOnBehalfOfType.php index e693d5b6..18f6e51b 100644 --- a/src/XML/wst_200512/AbstractOnBehalfOfType.php +++ b/src/XML/wst_200512/AbstractOnBehalfOfType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this OnBehalfOfType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractParticipantType.php b/src/XML/wst_200512/AbstractParticipantType.php index bc4e4c26..aad271ff 100644 --- a/src/XML/wst_200512/AbstractParticipantType.php +++ b/src/XML/wst_200512/AbstractParticipantType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ParticipantType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractParticipantsType.php b/src/XML/wst_200512/AbstractParticipantsType.php index 707d140c..77e14f06 100644 --- a/src/XML/wst_200512/AbstractParticipantsType.php +++ b/src/XML/wst_200512/AbstractParticipantsType.php @@ -99,10 +99,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ParticipantsType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractProofEncryptionType.php b/src/XML/wst_200512/AbstractProofEncryptionType.php index b726d78a..b598a3f5 100644 --- a/src/XML/wst_200512/AbstractProofEncryptionType.php +++ b/src/XML/wst_200512/AbstractProofEncryptionType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ProofEncryptionType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractRenewTargetType.php b/src/XML/wst_200512/AbstractRenewTargetType.php index 5b1c8baf..8dd59e2b 100644 --- a/src/XML/wst_200512/AbstractRenewTargetType.php +++ b/src/XML/wst_200512/AbstractRenewTargetType.php @@ -67,10 +67,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RenewTargetType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractRenewingType.php b/src/XML/wst_200512/AbstractRenewingType.php index d99a9c96..e30f977a 100644 --- a/src/XML/wst_200512/AbstractRenewingType.php +++ b/src/XML/wst_200512/AbstractRenewingType.php @@ -82,10 +82,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this UseKeyType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractRequestSecurityTokenCollectionType.php b/src/XML/wst_200512/AbstractRequestSecurityTokenCollectionType.php index fec742cb..101ee41d 100644 --- a/src/XML/wst_200512/AbstractRequestSecurityTokenCollectionType.php +++ b/src/XML/wst_200512/AbstractRequestSecurityTokenCollectionType.php @@ -69,7 +69,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractRequestSecurityTokenResponseCollectionType.php b/src/XML/wst_200512/AbstractRequestSecurityTokenResponseCollectionType.php index 86f8080b..f983280e 100644 --- a/src/XML/wst_200512/AbstractRequestSecurityTokenResponseCollectionType.php +++ b/src/XML/wst_200512/AbstractRequestSecurityTokenResponseCollectionType.php @@ -82,7 +82,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractRequestSecurityTokenResponseType.php b/src/XML/wst_200512/AbstractRequestSecurityTokenResponseType.php index 2c4ad05b..00eb2954 100644 --- a/src/XML/wst_200512/AbstractRequestSecurityTokenResponseType.php +++ b/src/XML/wst_200512/AbstractRequestSecurityTokenResponseType.php @@ -95,10 +95,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RequestSecurityTokenResponseType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractRequestSecurityTokenType.php b/src/XML/wst_200512/AbstractRequestSecurityTokenType.php index f5e5cb3b..901e9c57 100644 --- a/src/XML/wst_200512/AbstractRequestSecurityTokenType.php +++ b/src/XML/wst_200512/AbstractRequestSecurityTokenType.php @@ -97,10 +97,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RequestSecurityTokenType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractRequestedProofTokenType.php b/src/XML/wst_200512/AbstractRequestedProofTokenType.php index 2d46edd1..5360d0f9 100644 --- a/src/XML/wst_200512/AbstractRequestedProofTokenType.php +++ b/src/XML/wst_200512/AbstractRequestedProofTokenType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RequestedProofTokenType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractRequestedReferenceType.php b/src/XML/wst_200512/AbstractRequestedReferenceType.php index 7f6cd4dc..ac59581d 100644 --- a/src/XML/wst_200512/AbstractRequestedReferenceType.php +++ b/src/XML/wst_200512/AbstractRequestedReferenceType.php @@ -67,10 +67,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RequestedReferenceType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractRequestedSecurityTokenType.php b/src/XML/wst_200512/AbstractRequestedSecurityTokenType.php index 148fe6f9..97c46a92 100644 --- a/src/XML/wst_200512/AbstractRequestedSecurityTokenType.php +++ b/src/XML/wst_200512/AbstractRequestedSecurityTokenType.php @@ -65,10 +65,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this RequestedSecurityTokenType to an XML element. * - * @param \DOMElement $parent The element we should append this element to. + * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractSignChallengeType.php b/src/XML/wst_200512/AbstractSignChallengeType.php index 8042ee6e..9ff5a83f 100644 --- a/src/XML/wst_200512/AbstractSignChallengeType.php +++ b/src/XML/wst_200512/AbstractSignChallengeType.php @@ -102,10 +102,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this SignChallengeType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractStatusType.php b/src/XML/wst_200512/AbstractStatusType.php index ccb9d817..35a0f08f 100644 --- a/src/XML/wst_200512/AbstractStatusType.php +++ b/src/XML/wst_200512/AbstractStatusType.php @@ -80,10 +80,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this UseKeyType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractUseKeyType.php b/src/XML/wst_200512/AbstractUseKeyType.php index 58bbf353..2331ce9e 100644 --- a/src/XML/wst_200512/AbstractUseKeyType.php +++ b/src/XML/wst_200512/AbstractUseKeyType.php @@ -92,10 +92,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this UseKeyType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AbstractValidateTargetType.php b/src/XML/wst_200512/AbstractValidateTargetType.php index b3592cc1..925b2072 100644 --- a/src/XML/wst_200512/AbstractValidateTargetType.php +++ b/src/XML/wst_200512/AbstractValidateTargetType.php @@ -67,10 +67,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this ValidateTargetType to an XML element. * - * @param \DOMElement $parent The element we should append this username token to. + * @param \DOMElement|null $parent The element we should append this username token to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wst_200512/AllowPostdating.php b/src/XML/wst_200512/AllowPostdating.php index 98b441bf..13ce8526 100644 --- a/src/XML/wst_200512/AllowPostdating.php +++ b/src/XML/wst_200512/AllowPostdating.php @@ -39,7 +39,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { return $this->instantiateParentElement($parent); } diff --git a/src/XML/wst_200512/RequestKET.php b/src/XML/wst_200512/RequestKET.php index b5979a21..fb646fc5 100644 --- a/src/XML/wst_200512/RequestKET.php +++ b/src/XML/wst_200512/RequestKET.php @@ -39,7 +39,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { return $this->instantiateParentElement($parent); } diff --git a/src/XML/wst_200512/RequestedTokenCancelled.php b/src/XML/wst_200512/RequestedTokenCancelled.php index 5ec8b8d2..6c4d4f7b 100644 --- a/src/XML/wst_200512/RequestedTokenCancelled.php +++ b/src/XML/wst_200512/RequestedTokenCancelled.php @@ -39,7 +39,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this element to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { return $this->instantiateParentElement($parent); } diff --git a/src/XML/wsu/AbstractAttributedDateTime.php b/src/XML/wsu/AbstractAttributedDateTime.php index 2d76c3b8..fe344d32 100644 --- a/src/XML/wsu/AbstractAttributedDateTime.php +++ b/src/XML/wsu/AbstractAttributedDateTime.php @@ -96,7 +96,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent * @return \DOMElement */ - final public function toXML(DOMElement $parent = null): DOMElement + final public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getDateTime()->format(C::DATETIME_FORMAT); diff --git a/src/XML/wsu/AbstractAttributedURI.php b/src/XML/wsu/AbstractAttributedURI.php index a8588eb9..212e6a11 100644 --- a/src/XML/wsu/AbstractAttributedURI.php +++ b/src/XML/wsu/AbstractAttributedURI.php @@ -81,7 +81,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent * @return \DOMElement */ - final public function toXML(DOMElement $parent = null): DOMElement + final public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); $e->textContent = $this->getContent(); diff --git a/src/XML/wsu/AbstractTimestamp.php b/src/XML/wsu/AbstractTimestamp.php index 68f64de0..e9277aeb 100644 --- a/src/XML/wsu/AbstractTimestamp.php +++ b/src/XML/wsu/AbstractTimestamp.php @@ -141,7 +141,7 @@ public static function fromXML(DOMElement $xml): static * @param \DOMElement|null $parent The element we should append this class to. * @return \DOMElement The XML element after adding the data corresponding to this Timestamp. */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); diff --git a/src/XML/wsx/GetMetadata.php b/src/XML/wsx/GetMetadata.php index 597c9596..c209d6e9 100644 --- a/src/XML/wsx/GetMetadata.php +++ b/src/XML/wsx/GetMetadata.php @@ -108,10 +108,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this GetMetadata to an XML element. * - * @param \DOMElement $parent The element we should append this GetMetadata to. + * @param \DOMElement|null $parent The element we should append this GetMetadata to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wsx/Metadata.php b/src/XML/wsx/Metadata.php index 561f3996..74b722de 100644 --- a/src/XML/wsx/Metadata.php +++ b/src/XML/wsx/Metadata.php @@ -94,10 +94,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this Metadata to an XML element. * - * @param \DOMElement $parent The element we should append this Metadata to. + * @param \DOMElement|null $parent The element we should append this Metadata to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wsx/MetadataReference.php b/src/XML/wsx/MetadataReference.php index 9c1ce71f..1c509a88 100644 --- a/src/XML/wsx/MetadataReference.php +++ b/src/XML/wsx/MetadataReference.php @@ -60,10 +60,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this MetadataReference to an XML element. * - * @param \DOMElement $parent The element we should append this MetadataReference to. + * @param \DOMElement|null $parent The element we should append this MetadataReference to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); diff --git a/src/XML/wsx/MetadataSection.php b/src/XML/wsx/MetadataSection.php index 72f717b5..d8bdf21b 100644 --- a/src/XML/wsx/MetadataSection.php +++ b/src/XML/wsx/MetadataSection.php @@ -129,10 +129,10 @@ public static function fromXML(DOMElement $xml): static /** * Add this MetadataSection to an XML element. * - * @param \DOMElement $parent The element we should append this MetadataSection to. + * @param \DOMElement|null $parent The element we should append this MetadataSection to. * @return \DOMElement */ - public function toXML(DOMElement $parent = null): DOMElement + public function toXML(?DOMElement $parent = null): DOMElement { $e = parent::instantiateParentElement($parent); $e->setAttribute('Dialect', $this->getDialect());