Skip to content

Commit

Permalink
Fix PHPStan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 28, 2024
1 parent 777c574 commit f2c44ec
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/XML/wsp/AbstractOperatorContentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ abstract class AbstractOperatorContentType extends AbstractWspElement
* \SimpleSAML\WSSecurity\XML\wsp\PolicyReference)[] $operatorContent
* @param \SimpleSAML\XML\Chunk[] $children
*/
public function __construct(
final public function __construct(
protected array $operatorContent = [],
array $children = []
) {
Expand Down
4 changes: 2 additions & 2 deletions src/XML/wsp/AppliesTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ final class AppliesTo extends AbstractWspElement
/**
* Initialize a wsp:AppliesTo
*
* @param list<\SimpleSAML\XML\ElementInterface> $children
* @param list<\SimpleSAML\XML\Attribute> $namespacedAttributes
* @param array<\SimpleSAML\XML\SerializableElementInterface> $children
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
public function __construct(array $children = [], array $namespacedAttributes = [])
{
Expand Down
1 change: 1 addition & 0 deletions src/XML/wsp/Policy.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public static function fromXML(DOMElement $xml): static
'ExactlyOne' => ExactlyOne::fromXML($n),
'Policy' => Policy::fromXML($n),
'PolicyReference' => PolicyReference::fromXML($n),
default => null,
};
}

Expand Down
4 changes: 2 additions & 2 deletions src/XML/wsp/PolicyAttachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ final class PolicyAttachment extends AbstractWspElement
*
* @param \SimpleSAML\WSSecurity\XML\wsp\AppliesTo $appliesTo
* @param (\SimpleSAML\WSSecurity\XML\wsp\Policy|\SimpleSAML\WSSecurity\XML\wsp\PolicyReference)[] $policies
* @param \SimpleSAML\XML\ElementInterface[] $children
* @param list<\SimpleSAML\XML\Attribute> $namespacedAttributes
* @param array<\SimpleSAML\XML\SerializableElementInterface> $children
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
public function __construct(
protected AppliesTo $appliesTo,
Expand Down
4 changes: 2 additions & 2 deletions src/XML/wsse/AbstractAttributedString.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ abstract class AbstractAttributedString extends AbstractWsseElement
*
* @param string $content
* @param string|null $Id
* @param array $namespacedAttributes
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
public function __construct(
final public function __construct(
string $content,
protected ?string $Id = null,
array $namespacedAttributes = []
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsse/AbstractBinarySecurityTokenType.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class AbstractBinarySecurityTokenType extends AbstractEncodedString
* @param string|null $valueType
* @param string|null $Id
* @param string|null $EncodingType
* @param array $namespacedAttributes
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
final public function __construct(

Check failure on line 34 in src/XML/wsse/AbstractBinarySecurityTokenType.php

View workflow job for this annotation

GitHub Actions / Quality control

Method SimpleSAML\WSSecurity\XML\wsse\AbstractBinarySecurityTokenType::__construct() overrides final method SimpleSAML\WSSecurity\XML\wsse\AbstractEncodedString::__construct().
string $content,
Expand Down
4 changes: 2 additions & 2 deletions src/XML/wsse/AbstractEmbeddedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ abstract class AbstractEmbeddedType extends AbstractWsseElement
* AbstractEmbeddedType constructor
*
* @param string|null $valueType
* @param \SimpleSAML\XML\SerializableElementInterface[] $children
* @param array $namespacedAttributes
* @param array<\SimpleSAML\XML\SerializableElementInterface> $children
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
final public function __construct(
protected ?string $valueType = null,
Expand Down
4 changes: 2 additions & 2 deletions src/XML/wsse/AbstractEncodedString.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ abstract class AbstractEncodedString extends AbstractAttributedString
* @param string $content
* @param string|null $Id
* @param string|null $EncodingType
* @param array $namespacedAttributes
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
public function __construct(
final public function __construct(

Check failure on line 27 in src/XML/wsse/AbstractEncodedString.php

View workflow job for this annotation

GitHub Actions / Quality control

Method SimpleSAML\WSSecurity\XML\wsse\AbstractEncodedString::__construct() overrides final method SimpleSAML\WSSecurity\XML\wsse\AbstractAttributedString::__construct().
string $content,
?string $Id = null,
protected ?string $EncodingType = null,
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsse/AbstractKeyIdentifierType.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract class AbstractKeyIdentifierType extends AbstractEncodedString
* @param string|null $valueType
* @param string|null $Id
* @param string|null $EncodingType
* @param array $namespacedAttributes
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
final public function __construct(

Check failure on line 29 in src/XML/wsse/AbstractKeyIdentifierType.php

View workflow job for this annotation

GitHub Actions / Quality control

Method SimpleSAML\WSSecurity\XML\wsse\AbstractKeyIdentifierType::__construct() overrides final method SimpleSAML\WSSecurity\XML\wsse\AbstractEncodedString::__construct().
string $content,
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsse/AbstractPasswordString.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ abstract class AbstractPasswordString extends AbstractAttributedString
* @param string $content
* @param string|null $Id
* @param string|null $Type
* @param array $namespacedAttributes
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
final public function __construct(

Check failure on line 27 in src/XML/wsse/AbstractPasswordString.php

View workflow job for this annotation

GitHub Actions / Quality control

Method SimpleSAML\WSSecurity\XML\wsse\AbstractPasswordString::__construct() overrides final method SimpleSAML\WSSecurity\XML\wsse\AbstractAttributedString::__construct().
string $content,
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsse/AbstractReferenceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class AbstractReferenceType extends AbstractWsseElement
*
* @param string|null $URI
* @param string|null $valueType
* @param array $namespacedAttributes
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
final public function __construct(
protected ?string $URI = null,
Expand Down
4 changes: 2 additions & 2 deletions src/XML/wsse/AbstractSecurityHeaderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ abstract class AbstractSecurityHeaderType extends AbstractWsseElement
/**
* AbstractSecurityHeaderType constructor
*
* @param \SimpleSAML\XML\SerializableElementInterface[] $children
* @param array $namespacedAttributes
* @param array<\SimpleSAML\XML\SerializableElementInterface> $children
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
final public function __construct(
array $children = [],
Expand Down
4 changes: 2 additions & 2 deletions src/XML/wsse/AbstractSecurityTokenReferenceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ abstract class AbstractSecurityTokenReferenceType extends AbstractWsseElement
*
* @param string|null $Id
* @param string|null $Usage
* @param \SimpleSAML\XML\SerializableElementInterface[] $children
* @param array $namespacedAttributes
* @param array<\SimpleSAML\XML\SerializableElementInterface> $children
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
final public function __construct(
protected ?string $Id = null,
Expand Down
4 changes: 2 additions & 2 deletions src/XML/wsse/AbstractTransformationParametersType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ abstract class AbstractTransformationParametersType extends AbstractWsseElement
/**
* TransformationParametersType constructor
*
* @param \SimpleSAML\XML\SerializableElementInterface[] $children
* @param array $namespacedAttributes
* @param array<\SimpleSAML\XML\SerializableElementInterface> $children
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
final public function __construct(
array $children = [],
Expand Down

0 comments on commit f2c44ec

Please sign in to comment.