Skip to content

Commit 82423d9

Browse files
committed
Fix last minor issues
1 parent 47ff852 commit 82423d9

File tree

5 files changed

+22
-9
lines changed

5 files changed

+22
-9
lines changed

phpstan-baseline.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Call to an undefined static method SimpleSAML\\\\XML\\\\SerializableElementInterface\\:\\:getNameSpaceURI\\(\\)\\.$#"
5+
count: 1
6+
path: src/XML/ds/KeyValue.php
7+
8+
-
9+
message: "#^Call to an undefined static method SimpleSAML\\\\XML\\\\SerializableElementInterface\\:\\:getNameSpaceURI\\(\\)\\.$#"
10+
count: 1
11+
path: src/XML/dsig11/AbstractFieldIDType.php

phpstan.neon

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

src/XML/ds/KeyValue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ final public function __construct(
6767
/**
6868
* Collect the value of the RSAKeyValue-property
6969
*
70-
* @return \SimpleSAML\XMLSecurity\XML\ds\RSAKeyValue|
70+
* @return (\SimpleSAML\XMLSecurity\XML\ds\RSAKeyValue|
7171
* \SimpleSAML\XMLSecurity\XML\ds\DSAKeyValue|
7272
* \SimpleSAML\XMLSecurity\XML\dsig11\ECKeyValue|
73-
* \SimpeSAML\XML\SerializableElementInterface
73+
* \SimpleSAML\XML\SerializableElementInterface)
7474
*/
7575
public function getKeyValue(): RSAKeyValue|DSAKeyValue|ECKeyValue|SerializableElementInterface
7676
{

src/XML/dsig11/AbstractECKeyValueType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function getPublicKey(): PublicKey
7777
*
7878
* @return string|null
7979
*/
80-
public function getId(): string
80+
public function getId(): ?string
8181
{
8282
return $this->id;
8383
}

src/XML/dsig11/AbstractFieldIDType.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
99
use SimpleSAML\XML\Chunk;
10-
use SimpleSAML\XML\Constants as C;
1110
use SimpleSAML\XML\Exception\SchemaViolationException;
1211
use SimpleSAML\XML\ExtendableElementTrait;
1312
use SimpleSAML\XML\SerializableElementInterface;
1413
use SimpleSAML\XML\XsNamespace as NS;
14+
use SimpleSAML\XMLSecurity\Constants as C;
1515

1616
/**
1717
* Abstract class representing a dsig11:FieldIDType
@@ -57,11 +57,11 @@ public function __construct(
5757
/**
5858
* Collect the value of the fieldId-property
5959
*
60-
* @return \SimpleSAML\XMLSecurity\XML\dsig11\Prime
61-
* \SimpleSAML\XMLSecurity\XML\dsig11\TnB
62-
* \SimpleSAML\XMLSecurity\XML\dsig11\PnB
63-
* \SimpleSAML\XMLSecurity\XML\dsig11\GnB
64-
* \SimpleSAML\XML\SerializableElementInterface
60+
* @return (\SimpleSAML\XMLSecurity\XML\dsig11\Prime|
61+
* \SimpleSAML\XMLSecurity\XML\dsig11\TnB|
62+
* \SimpleSAML\XMLSecurity\XML\dsig11\PnB|
63+
* \SimpleSAML\XMLSecurity\XML\dsig11\GnB|
64+
* \SimpleSAML\XML\SerializableElementInterface)
6565
*/
6666
public function getFieldId(): Prime|TnB|PnB|GnB|SerializableElementInterface
6767
{

0 commit comments

Comments
 (0)