Skip to content

Commit a225715

Browse files
committed
Fix codesniffer issues
1 parent 18a7ed0 commit a225715

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

phpstan-dev.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ parameters:
22
level: 5
33
paths:
44
- tests
5-
includes:
6-
- phpstan-baseline-dev.neon
5+
#includes:
6+
# - phpstan-baseline-dev.neon

phpstan.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ parameters:
22
level: 2
33
paths:
44
- src
5-
includes:
6-
- phpstan-baseline.neon
5+
#includes:
6+
# - phpstan-baseline.neon

src/Binding/HTTPRedirect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function getRedirectURL(AbstractMessage $message): string
9090
$signatureValue = $signature->getSignatureValue();
9191

9292
$msg .= '&SigAlg=' . urlencode($signatureMethod->getAlgorithm()->getValue());
93-
$msg .= '&Signature=' . urlencode($signatureValue->getContent()->getValue());
93+
$msg .= '&Signature=' . urlencode($signatureValue->getValue()->getValue());
9494
}
9595

9696
if (str_contains($destination, '?')) {

src/XML/EncryptedElementTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ trait EncryptedElementTrait
3333
* @param \SimpleSAML\XMLSecurity\XML\xenc\EncryptedData $encryptedData The EncryptedData object.
3434
* @param \SimpleSAML\XMLSecurity\XML\xenc\EncryptedKey[] $decryptionKeys The EncryptedKey objects.
3535
*/
36-
public function __construct(
36+
final public function __construct(
3737
protected EncryptedData $encryptedData,
3838
protected array $decryptionKeys = [],
3939
) {

src/XML/mdui/Keywords.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ final class Keywords extends AbstractMduiElement implements
3636
public const TEXTCONTENT_TYPE = ListOfStringsValue::class;
3737

3838

39-
4039
/**
4140
* Initialize a Keywords.
4241
*
@@ -130,6 +129,9 @@ public static function fromArray(array $data): static
130129
*/
131130
public function toArray(): array
132131
{
133-
return [$this->getLanguage()->getValue() => $this->getContent()->toArray()];
132+
/** @var \SimpleSAML\SAML2\Type\ListOfStringsValue $content */
133+
$content = $this->getContent();
134+
135+
return [$this->getLanguage()->getValue() => $content->toArray()];
134136
}
135137
}

0 commit comments

Comments
 (0)