Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
php-versions: [ '8.2', '8.4']
php-versions: [ '8.3', '8.4']
experimental: [false]
timeout-minutes: 15
name: PHP ${{ matrix.php-versions }} on Ubuntu latest. Experimental == ${{ matrix.experimental }}
Expand Down
24 changes: 0 additions & 24 deletions ci/qa/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -486,12 +486,6 @@ parameters:
count: 1
path: ../../src/SAML2/AuthnRequest.php

-
message: '#^Method Surfnet\\SamlBundle\\SAML2\\AuthnRequest\:\:getAuthenticationContextClassRef\(\) should return string\|null but returns mixed\.$#'
identifier: return.type
count: 1
path: ../../src/SAML2/AuthnRequest.php

-
message: '#^Method Surfnet\\SamlBundle\\SAML2\\AuthnRequest\:\:getDestination\(\) should return string but returns string\|null\.$#'
identifier: return.type
Expand Down Expand Up @@ -528,12 +522,6 @@ parameters:
count: 1
path: ../../src/SAML2/AuthnRequest.php

-
message: '#^Parameter \#1 \$array of function reset expects array\|object, mixed given\.$#'
identifier: argument.type
count: 1
path: ../../src/SAML2/AuthnRequest.php

-
message: '#^Parameter \#1 \$string of function base64_encode expects string, string\|false given\.$#'
identifier: argument.type
Expand Down Expand Up @@ -678,12 +666,6 @@ parameters:
count: 1
path: ../../src/SAML2/ReceivedAuthnRequest.php

-
message: '#^Method Surfnet\\SamlBundle\\SAML2\\ReceivedAuthnRequest\:\:getAuthenticationContextClassRef\(\) should return string\|null but returns mixed\.$#'
identifier: return.type
count: 1
path: ../../src/SAML2/ReceivedAuthnRequest.php

-
message: '#^Method Surfnet\\SamlBundle\\SAML2\\ReceivedAuthnRequest\:\:getScopingRequesterIds\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
Expand All @@ -708,12 +690,6 @@ parameters:
count: 1
path: ../../src/SAML2/ReceivedAuthnRequest.php

-
message: '#^Parameter \#1 \$array of function reset expects array\|object, mixed given\.$#'
identifier: argument.type
count: 1
path: ../../src/SAML2/ReceivedAuthnRequest.php

-
message: '#^Parameter \#1 \$xml of static method SAML2\\Message\:\:fromXML\(\) expects DOMElement, DOMNode given\.$#'
identifier: argument.type
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"license": "Apache-2.0",
"minimum-stability": "stable",
"require": {
"php": "^8.1",
"php": "^8.3",
"ext-dom": "*",
"ext-openssl": "*",
"psr/log": "^3.0",
"robrichards/xmlseclibs": "^3.1.4",
"simplesamlphp/saml2": "^4.6",
"simplesamlphp/saml2": "^4.20.3",
"symfony/dependency-injection": "^6.3|^7.0",
"symfony/framework-bundle": "^6.3|^7.0",
"symfony/security-bundle": "^6.3|^7.0",
Expand All @@ -24,7 +24,6 @@
"require-dev": {
"ext-libxml": "*",
"ext-zlib": "*",
"irstea/phpcpd-shim": "^6.0",
"malukenho/docheader": "^1.1",
"mockery/mockery": "^1.5",
"overtrue/phplint": "*",
Expand All @@ -36,6 +35,7 @@
"sebastian/exporter": "^6.3",
"slevomat/coding-standard": "^8.24",
"squizlabs/php_codesniffer": "^4.0",
"systemsdk/phpcpd": "8.0.0",
"symfony/phpunit-bridge": "^7.3.4"
},
"scripts": {
Expand Down
9 changes: 4 additions & 5 deletions src/SAML2/BridgeContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function generateId(): string
return '_' . bin2hex(openssl_random_pseudo_bytes(30));
}

public function debugMessage($message, $type): void
public function debugMessage($message, string $type): void
{
if ($message instanceof DOMElement) {
$message = $message->ownerDocument->saveXML($message);
Expand All @@ -63,12 +63,12 @@ public function debugMessage($message, $type): void
$this->logger->debug($message, ['type' => $type]);
}

public function redirect($url, $data = []): void
public function redirect(string $url, array $data = []): void
{
$this->notSupported(__METHOD__);
}

public function postRedirect($url, $data = []): void
public function postRedirect(string $url, array $data = []): void
{
$this->notSupported(__METHOD__);
}
Expand All @@ -77,15 +77,14 @@ public function postRedirect($url, $data = []): void
public function getTempDir(): string
{
$this->notSupported(__METHOD__);
return '';
}

public function writeFile(string $filename, string $data, ?int $mode = null): void
{
$this->notSupported(__METHOD__);
}

public function notSupported(string $method): void
public function notSupported(string $method): never
{
throw new BadMethodCallException(sprintf(
"%s:%s may not be called in the Surfnet\\SamlBundle",
Expand Down
2 changes: 1 addition & 1 deletion src/SAML2/Extensions/ExtensionsMapperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Surfnet\SamlBundle\SAML2\Extensions;

use SAML2\XML\Chunk as SAML2Chunk;
use SimpleSAML\XML\Chunk as SAML2Chunk;

trait ExtensionsMapperTrait
{
Expand Down