From bf85d074762ebeb1724ae29a82b4f52d90c3a516 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Mon, 22 Jul 2024 20:58:26 +0200 Subject: [PATCH] Move SSP to dev-dependencies --- .github/workflows/php.yml | 4 +++- composer.json | 7 +++++-- tools/composer-require-checker.json | 9 +++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 7caf4df..af94c6e 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -83,7 +83,9 @@ jobs: run: | composer-unused \ --excludePackage=slevomat/coding-standard \ - --excludePackage=symfony/phpunit-bridge + --excludePackage=symfony/phpunit-bridge \ + --excludePackages=phpstan/phpstan \ + --excludePackages=phpstan/phpstan-mockery - name: PHP Code Sniffer run: phpcs diff --git a/composer.json b/composer.json index e7cc8b7..9415371 100644 --- a/composer.json +++ b/composer.json @@ -29,10 +29,12 @@ "phpstan/phpstan-mockery": "^1.1", "phpunit/phpunit": "^10.0 || ^11.0", "psr/log": "^2.0 || ^3.0", - "simplesamlphp/simplesamlphp": "^2", "slevomat/coding-standard": "^8.15", "symfony/phpunit-bridge": "^6.4 || ^7.0" }, + "require-dev": { + "simplesamlphp/simplesamlphp": "^2" + }, "support": { "issues": "https://github.com/simplesamlphp/simplesamlphp-test-framework/issues", "source": "https://github.com/simplesamlphp/simplesamlphp-test-framework" @@ -41,7 +43,8 @@ "allow-plugins": { "composer/package-versions-deprecated": true, "simplesamlphp/composer-module-installer": true, - "dealerdirect/phpcodesniffer-composer-installer": true + "dealerdirect/phpcodesniffer-composer-installer": true, + "phpstan/extension-installer": true } } } diff --git a/tools/composer-require-checker.json b/tools/composer-require-checker.json index eed71aa..f75b225 100644 --- a/tools/composer-require-checker.json +++ b/tools/composer-require-checker.json @@ -1,4 +1,13 @@ { "symbol-whitelist": [ + "SimpleSAML\\Configuration", + "SimpleSAML\\Error\\ConfigurationError", + "SimpleSAML\\Logger\\LoggingHandlerInterface", + "SimpleSAML\\Metadata\\MetaDataStorageHandler", + "SimpleSAML\\Session", + "SimpleSAML\\Store\\StoreFactory", + "SimpleSAML\\Store\\StoreInterface", + "SimpleSAML\\Utils\\ClearableState", + "SimpleSAML\\Utils\\System" ] }