Skip to content

Commit 0407b93

Browse files
committed
Fix psalm-issues
1 parent 4a8d983 commit 0407b93

6 files changed

Lines changed: 11 additions & 8 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ext-zlib": "*",
2424

2525
"psr/log": "~1.1 || ^2.0 || ^3.0",
26-
"simplesamlphp/xml-security": "^1.1.0",
26+
"simplesamlphp/xml-security": "^1.1.1",
2727
"simplesamlphp/xml-soap": "^1.0.0",
2828
"simplesamlphp/assert": "^1.0.0"
2929
},

src/SAML2/Assertion/Validation/SubjectConfirmationValidator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public function __construct(
3232
/**
3333
* @param \SimpleSAML\SAML2\Assertion\Validation\SubjectConfirmationConstraintValidator $constraint
3434
*/
35-
public function addConstraintValidator(SubjectConfirmationConstraintValidator $constraint): void {
35+
public function addConstraintValidator(
36+
SubjectConfirmationConstraintValidator $constraint
37+
): void {
3638
if ($constraint instanceof IdentityProviderAware) {
3739
$constraint->setIdentityProvider($this->identityProvider);
3840
}

src/SAML2/XML/ExtensionsTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
*/
2020
trait ExtensionsTrait
2121
{
22-
/** @var \SimpleSAML\XML\ElementInterface[] */
22+
/** @var \SimpleSAML\XML\SerializableElementInterface[] */
2323
protected array $extensions = [];
2424

2525

2626
/**
2727
* Extensions constructor.
2828
*
29-
* @param \SimpleSAML\XML\ElementInterface[] $extensions
29+
* @param \SimpleSAML\XML\SerializableElementInterface[] $extensions
3030
*/
3131
public function __construct(array $extensions)
3232
{
@@ -57,7 +57,7 @@ public function __construct(array $extensions)
5757
/**
5858
* Get an array with all extensions present.
5959
*
60-
* @return \SimpleSAML\XML\ElementInterface[]
60+
* @return \SimpleSAML\XML\SerializableElementInterface[]
6161
*/
6262
public function getList(): array
6363
{

src/SAML2/XML/alg/DigestMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function getAlgorithm(): string
5858
* Convert XML into a DigestMethod
5959
*
6060
* @param \DOMElement $xml The XML element we should load
61-
* @return self
61+
* @return static
6262
*
6363
* @throws \SimpleSAML\XML\Exception\InvalidDOMElementException
6464
* if the qualified name of the supplied element is wrong

tests/SAML2/XML/md/KeyDescriptorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public function testMarshallingWithoutOptionalParameters(): void
9292
$this->assertNull($kd->getUse());
9393
$this->assertEmpty($kd->getEncryptionMethod());
9494

95-
$this->assertEquals(<<<XML
95+
$this->assertEquals(
96+
<<<XML
9697
<md:KeyDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata">
9798
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
9899
<ds:KeyName>IdentityProvider.com SSO Key</ds:KeyName>

tests/SAML2/XML/saml/SubjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use SimpleSAML\XML\DOMDocumentFactory;
2121
use SimpleSAML\XML\Exception\TooManyElementsException;
2222
use simpleSAML\XMLSecurity\XML\ds\KeyInfo;
23-
use simpleSAML\XMLSecurity\XML\ds\KeyName;
23+
use SimpleSAML\XMLSecurity\XML\ds\KeyName;
2424

2525
use function dirname;
2626
use function strval;

0 commit comments

Comments
 (0)