Skip to content

no merge: ci testing #188

no merge: ci testing

no merge: ci testing #188

Triggered via pull request August 19, 2025 06:59
Status Failure
Total duration 1m 50s
Artifacts

php.yml

on: pull_request
Matrix: unit-tests-linux
Matrix: unit-tests-windows
Code coverage
Code coverage
Cleanup artifacts
0s
Cleanup artifacts
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 14 warnings
Linter
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires PHP extension ext-pdo * but it is missing from your system. Install or enable PHP's pdo extension. Alternatively you can require one of these packages that provide the extension (or parts of it): Keep in mind that the suggestions are automated and may not be valid or safe to use - wl4837/maotool 🐶 PHP工具类库 更加快速的开发项目 便捷优雅的使用类库 Problem 2 - Root composer.json requires simplesamlphp/simplesamlphp ^2.1.0 -> satisfiable by simplesamlphp/simplesamlphp[2.1.0, ..., v2.4.2]. - simplesamlphp/simplesamlphp[2.1.0, ..., v2.4.2] require ext-session * -> it is missing from your system. Install or enable PHP's session extension. To enable extensions, verify that they are enabled in your .ini files: - /etc/php84/php.ini - /etc/php84/conf.d/00_ctype.ini - /etc/php84/conf.d/00_curl.ini - /etc/php84/conf.d/00_dom.ini - /etc/php84/conf.d/00_iconv.ini - /etc/php84/conf.d/00_intl.ini - /etc/php84/conf.d/00_mbstring.ini - /etc/php84/conf.d/00_openssl.ini - /etc/php84/conf.d/00_simplexml.ini - /etc/php84/conf.d/00_tokenizer.ini - /etc/php84/conf.d/00_xmlwriter.ini - /etc/php84/conf.d/01_phar.ini - /etc/php84/conf.d/10_igbinary.ini You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode. Alternatively, you can run Composer with `--ignore-platform-req=ext-pdo --ignore-platform-req=ext-session` to temporarily ignore these required extensions.
MissingOverrideAttribute: tests/src/Controller/ConsentControllerTest.php#L168
tests/src/Controller/ConsentControllerTest.php:168:13: MissingOverrideAttribute: Method SimpleSAML\Test\Module\consent\Controller\_home_runner_work_simplesamlphp_module_consent_simplesamlphp_module_consent_tests_src_Controller_ConsentControllerTest_php_167_5345::loadstate should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: tests/src/Controller/ConsentControllerTest.php#L127
tests/src/Controller/ConsentControllerTest.php:127:13: MissingOverrideAttribute: Method SimpleSAML\Test\Module\consent\Controller\_home_runner_work_simplesamlphp_module_consent_simplesamlphp_module_consent_tests_src_Controller_ConsentControllerTest_php_126_3776::loadstate should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: tests/src/Controller/ConsentControllerTest.php#L98
tests/src/Controller/ConsentControllerTest.php:98:25: MissingOverrideAttribute: Method SimpleSAML\Test\Module\consent\Controller\_home_runner_work_simplesamlphp_module_consent_simplesamlphp_module_consent_tests_src_Controller_ConsentControllerTest_php_93_2716::saveconsent should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: tests/src/Controller/ConsentControllerTest.php#L80
tests/src/Controller/ConsentControllerTest.php:80:13: MissingOverrideAttribute: Method SimpleSAML\Test\Module\consent\Controller\_home_runner_work_simplesamlphp_module_consent_simplesamlphp_module_consent_tests_src_Controller_ConsentControllerTest_php_79_2023::loadstate should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: tests/src/Controller/ConsentControllerTest.php#L58
tests/src/Controller/ConsentControllerTest.php:58:13: MissingOverrideAttribute: Method SimpleSAML\Test\Module\consent\Controller\_home_runner_work_simplesamlphp_module_consent_simplesamlphp_module_consent_tests_src_Controller_ConsentControllerTest_php_57_1421::info should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: tests/src/Controller/ConsentControllerTest.php#L41
tests/src/Controller/ConsentControllerTest.php:41:5: MissingOverrideAttribute: Method SimpleSAML\Test\Module\consent\Controller\ConsentControllerTest::setupbeforeclass should have the "Override" attribute (see https://psalm.dev/358)
UnusedClass: tests/src/Controller/ConsentControllerTest.php#L25
tests/src/Controller/ConsentControllerTest.php:25:7: UnusedClass: Class SimpleSAML\Test\Module\consent\Controller\ConsentControllerTest is never used (see https://psalm.dev/075)
UnusedMethodCall: tests/src/Auth/Process/ConsentTest.php#L219
tests/src/Auth/Process/ConsentTest.php:219:32: UnusedMethodCall: The call to ReflectionProperty::setAccessible is not used (see https://psalm.dev/209)
MissingOverrideAttribute: tests/src/Auth/Process/ConsentTest.php#L24
tests/src/Auth/Process/ConsentTest.php:24:5: MissingOverrideAttribute: Method SimpleSAML\Test\Module\consent\Auth\Process\ConsentTest::setup should have the "Override" attribute (see https://psalm.dev/358)
UnusedClass: tests/src/Auth/Process/ConsentTest.php#L16
tests/src/Auth/Process/ConsentTest.php:16:7: UnusedClass: Class SimpleSAML\Test\Module\consent\Auth\Process\ConsentTest is never used (see https://psalm.dev/075)
MissingOverrideAttribute: src/Consent/Store/Cookie.php#L229
src/Consent/Store/Cookie.php:229:5: MissingOverrideAttribute: Method SimpleSAML\Module\consent\Consent\Store\Cookie::getconsents should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/Consent/Store/Cookie.php#L212
src/Consent/Store/Cookie.php:212:5: MissingOverrideAttribute: Method SimpleSAML\Module\consent\Consent\Store\Cookie::deleteallconsents should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/Consent/Store/Cookie.php#L196
src/Consent/Store/Cookie.php:196:5: MissingOverrideAttribute: Method SimpleSAML\Module\consent\Consent\Store\Cookie::deleteconsent should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/Consent/Store/Cookie.php#L175
src/Consent/Store/Cookie.php:175:5: MissingOverrideAttribute: Method SimpleSAML\Module\consent\Consent\Store\Cookie::saveconsent should have the "Override" attribute (see https://psalm.dev/358)
TypeDoesNotContainType: src/Consent/Store/Cookie.php#L138
src/Consent/Store/Cookie.php:138:14: TypeDoesNotContainType: Type string for $_COOKIE[$cookieName] is always !string (see https://psalm.dev/056)
MissingOverrideAttribute: src/Consent/Store/Cookie.php#L124
src/Consent/Store/Cookie.php:124:5: MissingOverrideAttribute: Method SimpleSAML\Module\consent\Consent\Store\Cookie::hasconsent should have the "Override" attribute (see https://psalm.dev/358)
ClassMustBeFinal: src/Consent/Store/Cookie.php#L32
src/Consent/Store/Cookie.php:32:7: ClassMustBeFinal: Class SimpleSAML\Module\consent\Consent\Store\Cookie is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
UnusedForeachValue: src/Auth/Process/Consent.php#L315
src/Auth/Process/Consent.php:315:49: UnusedForeachValue: $attrval is never referenced or the value is not used (see https://psalm.dev/275)
MissingOverrideAttribute: src/Auth/Process/Consent.php#L249
src/Auth/Process/Consent.php:249:5: MissingOverrideAttribute: Method SimpleSAML\Module\consent\Auth\Process\Consent::process should have the "Override" attribute (see https://psalm.dev/358)
ClassMustBeFinal: src/Auth/Process/Consent.php#L27
src/Auth/Process/Consent.php:27:7: ClassMustBeFinal: Class SimpleSAML\Module\consent\Auth\Process\Consent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
ClassMustBeFinal: tests/src/Controller/ConsentControllerTest.php#L25
tests/src/Controller/ConsentControllerTest.php:25:7: ClassMustBeFinal: Class SimpleSAML\Test\Module\consent\Controller\ConsentControllerTest is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
PossiblyUndefinedVariable: tests/src/Auth/Process/ConsentTest.php#L218
tests/src/Auth/Process/ConsentTest.php:218:13: PossiblyUndefinedVariable: Possibly undefined variable $instanceVars, first seen on line 218 (see https://psalm.dev/018)
PropertyNotSetInConstructor: tests/src/Auth/Process/ConsentTest.php#L19
tests/src/Auth/Process/ConsentTest.php:19:15: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\consent\Auth\Process\ConsentTest::$config is not defined in constructor of SimpleSAML\Test\Module\consent\Auth\Process\ConsentTest or in any methods called in the constructor (see https://psalm.dev/074)
ClassMustBeFinal: tests/src/Auth/Process/ConsentTest.php#L16
tests/src/Auth/Process/ConsentTest.php:16:7: ClassMustBeFinal: Class SimpleSAML\Test\Module\consent\Auth\Process\ConsentTest is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
PossiblyUnusedMethod: src/Store.php#L98
src/Store.php:98:21: PossiblyUnusedMethod: Cannot find any calls to method SimpleSAML\Module\consent\Store::getStatistics (see https://psalm.dev/087)
PossiblyUnusedMethod: src/Store.php#L85
src/Store.php:85:21: PossiblyUnusedMethod: Cannot find any calls to method SimpleSAML\Module\consent\Store::deleteAllConsents (see https://psalm.dev/087)
PossiblyUnusedMethod: src/Store.php#L71
src/Store.php:71:30: PossiblyUnusedMethod: Cannot find any calls to method SimpleSAML\Module\consent\Store::deleteConsent (see https://psalm.dev/087)
PossiblyUnusedMethod: src/Store.php#L58
src/Store.php:58:30: PossiblyUnusedMethod: Cannot find explicit calls to method SimpleSAML\Module\consent\Store::saveConsent (but did find some potential callers) (see https://psalm.dev/087)
UnusedClass: src/Logout.php#L17
src/Logout.php:17:7: UnusedClass: Class SimpleSAML\Module\consent\Logout is never used (see https://psalm.dev/075)
UnusedClass: src/Controller/ConsentController.php#L27
src/Controller/ConsentController.php:27:7: UnusedClass: Class SimpleSAML\Module\consent\Controller\ConsentController is never used (see https://psalm.dev/075)
LessSpecificReturnType: src/Consent/Store/Database.php#L430
src/Consent/Store/Database.php:430:16: LessSpecificReturnType: The inferred return type 'PDO' for SimpleSAML\Module\consent\Consent\Store\Database::getDB is more specific than the declared return type 'PDO|false' (see https://psalm.dev/088)
UnusedClass: src/Consent/Store/Database.php#L28
src/Consent/Store/Database.php:28:7: UnusedClass: Class SimpleSAML\Module\consent\Consent\Store\Database is never used (see https://psalm.dev/075)
UnusedClass: src/Consent/Store/Cookie.php#L32
src/Consent/Store/Cookie.php:32:7: UnusedClass: Class SimpleSAML\Module\consent\Consent\Store\Cookie is never used (see https://psalm.dev/075)
UnusedClass: src/Auth/Process/Consent.php#L27
src/Auth/Process/Consent.php:27:7: UnusedClass: Class SimpleSAML\Module\consent\Auth\Process\Consent is never used (see https://psalm.dev/075)