simplesamlphp /
xml-cas
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace SimpleSAML\CAS\XML; |
||
| 6 | |||
| 7 | use DOMElement; |
||
| 8 | use SimpleSAML\CAS\Assert\Assert; |
||
| 9 | use SimpleSAML\CAS\Type\CodeValue; |
||
|
0 ignored issues
–
show
|
|||
| 10 | use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException; |
||
| 11 | use SimpleSAML\XMLSchema\Type\StringValue; |
||
|
0 ignored issues
–
show
The type
SimpleSAML\XMLSchema\Type\StringValue was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 12 | |||
| 13 | /** |
||
| 14 | * Class for CAS proxyFailure |
||
| 15 | * |
||
| 16 | * @package simplesamlphp/xml-cas |
||
| 17 | */ |
||
| 18 | final class ProxyFailure extends AbstractProxyFailure |
||
|
0 ignored issues
–
show
The type
SimpleSAML\CAS\XML\AbstractProxyFailure was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Initialize an ProxyFailure element. |
||
| 22 | * |
||
| 23 | * @param \DOMElement $xml The XML element we should load. |
||
| 24 | * @return static |
||
| 25 | * |
||
| 26 | * @throws \SimpleSAML\XMLSchema\Exception\InvalidDOMElementException |
||
| 27 | * if the qualified name of the supplied element is wrong |
||
| 28 | * @throws \SimpleSAML\XMLSchema\Exception\MissingAttributeException |
||
| 29 | * if the supplied element is missing any of the mandatory attributes |
||
| 30 | */ |
||
| 31 | public static function fromXML(DOMElement $xml): static |
||
| 32 | { |
||
| 33 | Assert::same($xml->localName, static::getLocalName(), InvalidDOMElementException::class); |
||
| 34 | Assert::same($xml->namespaceURI, static::getNamespaceURI(), InvalidDOMElementException::class); |
||
| 35 | |||
| 36 | return new static( |
||
| 37 | StringValue::fromString($xml->textContent), |
||
| 38 | self::getAttribute($xml, 'code', CodeValue::class), |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths