Skip to content

Commit 76f3b6d

Browse files
committed
Remove multinamespace
1 parent c32c32d commit 76f3b6d

115 files changed

Lines changed: 946 additions & 688 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/php.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
php-version: ['8.1', '8.2', '8.3', '8.4']
22+
php-version: ['8.2', '8.3', '8.4']
2323

2424
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.9.2
2525
with:
@@ -45,7 +45,7 @@ jobs:
4545
fail-fast: false
4646
matrix:
4747
operating-system: [ubuntu-latest]
48-
php-versions: ['8.1', '8.2', '8.3', '8.4']
48+
php-versions: ['8.2', '8.3', '8.4']
4949

5050
steps:
5151
- name: Setup PHP, with composer and extensions
@@ -107,15 +107,15 @@ jobs:
107107
fail-fast: true
108108
matrix:
109109
operating-system: [windows-latest]
110-
php-versions: ['8.1', '8.2', '8.3', '8.4']
110+
php-versions: ['8.2', '8.3', '8.4']
111111

112112
steps:
113113
- name: Setup PHP, with composer and extensions
114114
# https://github.com/shivammathur/setup-php
115115
uses: shivammathur/setup-php@v2
116116
with:
117117
php-version: ${{ matrix.php-versions }}
118-
extensions: ctype, date, dom, filter, hash, mbstring, openssl, pcre, soap, spl, xml
118+
extensions: ctype, date, dom, filter, hash, mbstring, openssl, pcre, soap, spl, xml, zip
119119
tools: composer
120120
ini-values: error_reporting=E_ALL
121121
coverage: none
@@ -212,7 +212,7 @@ jobs:
212212
uses: shivammathur/setup-php@v2
213213
with:
214214
# Should be the lowest supported version
215-
php-version: '8.1'
215+
php-version: '8.2'
216216
extensions: ctype, date, dom, filter, hash, mbstring, openssl, pcre, soap, spl, xml
217217
tools: composer
218218
coverage: none

src/SAML11/Compat/AbstractContainer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
use Psr\Log\LoggerInterface;
99
use SimpleSAML\SAML11\Assert\Assert;
1010
use SimpleSAML\SAML11\XML\ExtensionPointInterface;
11-
use SimpleSAML\XML\{AbstractElement, ElementInterface};
11+
use SimpleSAML\XML\AbstractElement;
12+
use SimpleSAML\XML\ElementInterface;
1213
use SimpleSAML\XMLSchema\Type\QNameValue;
1314
use SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmFactory;
1415
use SimpleSAML\XMLSecurity\Alg\KeyTransport\KeyTransportAlgorithmFactory;

src/SAML11/Constants.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class Constants extends \SimpleSAML\XMLSecurity\Constants
178178
*/
179179
public const STATUS_VERSION_MISMATCH = 'samlp:VersionMismatch';
180180

181+
181182
/** @var string[] */
182183
public static array $STATUS_CODES = [
183184
self::STATUS_REQUEST_DENIED,

src/SAML11/XML/ExtensionPointInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
namespace SimpleSAML\SAML11\XML;
66

7-
use SimpleSAML\XMLSchema\Type\{AnyURIValue, NCNameValue, QNameValue};
7+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
8+
use SimpleSAML\XMLSchema\Type\NCNameValue;
9+
use SimpleSAML\XMLSchema\Type\QNameValue;
810

911
/**
1012
* Interface for several extension points objects.

src/SAML11/XML/ExtensionPointTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
use RuntimeException;
88
use SimpleSAML\SAML11\Assert\Assert;
9-
use SimpleSAML\XMLSchema\Type\{AnyURIValue, NCNameValue, QNameValue};
9+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
10+
use SimpleSAML\XMLSchema\Type\NCNameValue;
11+
use SimpleSAML\XMLSchema\Type\QNameValue;
1012

1113
use function constant;
1214
use function defined;

src/SAML11/XML/SignableElementTrait.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
use SimpleSAML\Assert\Assert;
99
use SimpleSAML\SAML11\Compat\ContainerSingleton;
1010
use SimpleSAML\XML\DOMDocumentFactory;
11-
use SimpleSAML\XMLSchema\Type\{AnyURIValue, Base64BinaryValue};
11+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
12+
use SimpleSAML\XMLSchema\Type\Base64BinaryValue;
1213
use SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmInterface;
1314
use SimpleSAML\XMLSecurity\Constants as C;
14-
use SimpleSAML\XMLSecurity\Exception\{RuntimeException, UnsupportedAlgorithmException};
15+
use SimpleSAML\XMLSecurity\Exception\RuntimeException;
16+
use SimpleSAML\XMLSecurity\Exception\UnsupportedAlgorithmException;
1517
use SimpleSAML\XMLSecurity\Utils\XML;
16-
use SimpleSAML\XMLSecurity\XML\ds\{
17-
CanonicalizationMethod,
18-
KeyInfo,
19-
Signature,
20-
SignatureMethod,
21-
SignatureValue,
22-
SignedInfo,
23-
Transform,
24-
Transforms,
25-
};
18+
use SimpleSAML\XMLSecurity\XML\ds\CanonicalizationMethod;
19+
use SimpleSAML\XMLSecurity\XML\ds\KeyInfo;
20+
use SimpleSAML\XMLSecurity\XML\ds\Signature;
21+
use SimpleSAML\XMLSecurity\XML\ds\SignatureMethod;
22+
use SimpleSAML\XMLSecurity\XML\ds\SignatureValue;
23+
use SimpleSAML\XMLSecurity\XML\ds\SignedInfo;
24+
use SimpleSAML\XMLSecurity\XML\ds\Transform;
25+
use SimpleSAML\XMLSecurity\XML\ds\Transforms;
2626
use SimpleSAML\XMLSecurity\XML\SignableElementTrait as BaseSignableElementTrait;
2727

2828
use function base64_encode;

src/SAML11/XML/saml/AbstractActionType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
9-
use SimpleSAML\SAML11\Type\{SAMLAnyURIValue, SAMLStringValue};
10-
use SimpleSAML\XMLSchema\Exception\{InvalidDOMElementException, SchemaViolationException};
9+
use SimpleSAML\SAML11\Type\SAMLAnyURIValue;
10+
use SimpleSAML\SAML11\Type\SAMLStringValue;
11+
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
1112

1213
use function strval;
1314

src/SAML11/XML/saml/AbstractAdviceType.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
use SimpleSAML\SAML11\Constants as C;
1010
use SimpleSAML\XML\Chunk;
1111
use SimpleSAML\XML\ExtendableElementTrait;
12-
use SimpleSAML\XMLSchema\Exception\{InvalidDOMElementException, SchemaViolationException};
13-
use SimpleSAML\XMLSchema\XML\Enumeration\NamespaceEnum;
12+
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
13+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
14+
use SimpleSAML\XMLSchema\XML\Constants\NS;
1415

1516
/**
1617
* SAML AdviceType abstract data type.
@@ -21,8 +22,9 @@ abstract class AbstractAdviceType extends AbstractSamlElement
2122
{
2223
use ExtendableElementTrait;
2324

25+
2426
/** The namespace-attribute for the xs:any element */
25-
public const XS_ANY_ELT_NAMESPACE = NamespaceEnum::Other;
27+
public const XS_ANY_ELT_NAMESPACE = NS::OTHER;
2628

2729

2830
/**

src/SAML11/XML/saml/AbstractAssertionType.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@
99
use SimpleSAML\SAML11\Compat\ContainerSingleton;
1010
use SimpleSAML\SAML11\Constants as C;
1111
use SimpleSAML\SAML11\Exception\VersionMismatchException;
12+
use SimpleSAML\SAML11\Type\SAMLDateTimeValue;
13+
use SimpleSAML\SAML11\Type\SAMLStringValue;
1214
use SimpleSAML\SAML11\Utils\XPath;
13-
use SimpleSAML\SAML11\Type\{SAMLDateTimeValue, SAMLStringValue};
14-
use SimpleSAML\XMLSchema\Exception\{
15-
InvalidDOMElementException,
16-
MissingElementException,
17-
SchemaViolationException,
18-
TooManyElementsException,
19-
};
20-
use SimpleSAML\XMLSchema\Type\{IDValue, NonNegativeIntegerValue};
15+
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
16+
use SimpleSAML\XMLSchema\Exception\MissingElementException;
17+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
18+
use SimpleSAML\XMLSchema\Exception\TooManyElementsException;
19+
use SimpleSAML\XMLSchema\Type\IDValue;
20+
use SimpleSAML\XMLSchema\Type\NonNegativeIntegerValue;
2121
use SimpleSAML\XMLSecurity\XML\ds\Signature;
22-
use SimpleSAML\XMLSecurity\XML\{SignableElementInterface, SignableElementTrait};
23-
use SimpleSAML\XMLSecurity\XML\{SignedElementInterface, SignedElementTrait};
22+
use SimpleSAML\XMLSecurity\XML\SignableElementInterface;
23+
use SimpleSAML\XMLSecurity\XML\SignableElementTrait;
24+
use SimpleSAML\XMLSecurity\XML\SignedElementInterface;
25+
use SimpleSAML\XMLSecurity\XML\SignedElementTrait;
2426

2527
use function array_filter;
2628
use function array_merge;

src/SAML11/XML/saml/AbstractAttributeDesignatorType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
namespace SimpleSAML\SAML11\XML\saml;
66

77
use DOMElement;
8-
use SimpleSAML\SAML11\Type\{SAMLAnyURIValue, SAMLStringValue};
8+
use SimpleSAML\SAML11\Type\SAMLAnyURIValue;
9+
use SimpleSAML\SAML11\Type\SAMLStringValue;
910

1011
use function strval;
1112

0 commit comments

Comments
 (0)