Skip to content

Fix codesniffer issues #132

Fix codesniffer issues

Fix codesniffer issues #132

Triggered via push February 14, 2024 17:48
Status Failure
Total duration 1m 23s
Artifacts

php.yml

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

Annotations

11 errors and 10 warnings
Quality control
Process completed with exit code 1.
InvalidArgument: tests/public/LoginIntegrationTest.php#L460
tests/public/LoginIntegrationTest.php:460:27: InvalidArgument: Argument 1 of curl_exec expects CurlHandle, but resource provided (see https://psalm.dev/004)
InvalidArgument: tests/public/LoginIntegrationTest.php#L462
tests/public/LoginIntegrationTest.php:462:62: InvalidArgument: Argument 1 of curl_error expects CurlHandle, but resource provided (see https://psalm.dev/004)
InvalidArgument: tests/public/LoginIntegrationTest.php#L465
tests/public/LoginIntegrationTest.php:465:30: InvalidArgument: Argument 1 of curl_getinfo expects CurlHandle, but resource provided (see https://psalm.dev/004)
InvalidArgument: tests/public/LoginIntegrationTest.php#L474
tests/public/LoginIntegrationTest.php:474:20: InvalidArgument: Argument 1 of curl_close expects CurlHandle, but resource provided (see https://psalm.dev/004)
InvalidArgument: tests/public/LoginIntegrationTest.php#L508
tests/public/LoginIntegrationTest.php:508:49: InvalidArgument: Argument 1 of SimpleSAML\Casserver\LoginIntegrationTest::execAndHandleCurlResponse expects resource, but CurlHandle|false provided (see https://psalm.dev/004)
UnresolvableInclude: tests/routers/configLoader.php#L33
tests/routers/configLoader.php:33:1: UnresolvableInclude: Cannot resolve the given expression to a file path (see https://psalm.dev/106)
UndefinedDocblockClass: tests/src/Cas/Protocol/SamlValidateTest.php#L48
tests/src/Cas/Protocol/SamlValidateTest.php:48:19: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\XML\SOAP11\XML\env\Envelope does not exist (see https://psalm.dev/200)
InvalidArgument: tests/src/Cas/Protocol/SamlValidateTest.php#L50
tests/src/Cas/Protocol/SamlValidateTest.php:50:33: InvalidArgument: Argument 1 of SimpleSAML\Casserver\SamlValidateTest::assertInstanceOf expects class-string, but SimpleSAML\XML\SOAP11\XML\env\Envelope provided (see https://psalm.dev/004)
UndefinedDocblockClass: tests/src/Cas/Protocol/SamlValidateTest.php#L51
tests/src/Cas/Protocol/SamlValidateTest.php:51:27: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\XML\SOAP11\XML\env\Envelope does not exist (see https://psalm.dev/200)
UndefinedDocblockClass: tests/src/Cas/Protocol/SamlValidateTest.php#L52
tests/src/Cas/Protocol/SamlValidateTest.php:52:31: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\XML\SOAP11\XML\env\Envelope does not exist (see https://psalm.dev/200)
PropertyNotSetInConstructor: tests/public/LoginIntegrationTest.php#L37
tests/public/LoginIntegrationTest.php:37:29: PropertyNotSetInConstructor: Property SimpleSAML\Casserver\LoginIntegrationTest::$server is not defined in constructor of SimpleSAML\Casserver\LoginIntegrationTest or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/public/LoginIntegrationTest.php#L42
tests/public/LoginIntegrationTest.php:42:22: PropertyNotSetInConstructor: Property SimpleSAML\Casserver\LoginIntegrationTest::$server_addr is not defined in constructor of SimpleSAML\Casserver\LoginIntegrationTest or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/public/LoginIntegrationTest.php#L47
tests/public/LoginIntegrationTest.php:47:19: PropertyNotSetInConstructor: Property SimpleSAML\Casserver\LoginIntegrationTest::$server_pid is not defined in constructor of SimpleSAML\Casserver\LoginIntegrationTest or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/public/LoginIntegrationTest.php#L52
tests/public/LoginIntegrationTest.php:52:22: PropertyNotSetInConstructor: Property SimpleSAML\Casserver\LoginIntegrationTest::$shared_file is not defined in constructor of SimpleSAML\Casserver\LoginIntegrationTest or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/public/LoginIntegrationTest.php#L57
tests/public/LoginIntegrationTest.php:57:22: PropertyNotSetInConstructor: Property SimpleSAML\Casserver\LoginIntegrationTest::$cookies_file is not defined in constructor of SimpleSAML\Casserver\LoginIntegrationTest or in any methods called in the constructor (see https://psalm.dev/074)
PossiblyUndefinedArrayOffset: tests/public/LoginIntegrationTest.php#L466
tests/public/LoginIntegrationTest.php:466:23: PossiblyUndefinedArrayOffset: Possibly undefined array key (see https://psalm.dev/167)
PossiblyInvalidArgument: tests/public/LoginIntegrationTest.php#L466
tests/public/LoginIntegrationTest.php:466:52: PossiblyInvalidArgument: Argument 2 of explode expects string, but possibly different type string|true provided (see https://psalm.dev/092)
PossiblyUndefinedArrayOffset: tests/public/LoginIntegrationTest.php#L471
tests/public/LoginIntegrationTest.php:471:25: PossiblyUndefinedArrayOffset: Possibly undefined array key (see https://psalm.dev/167)
DeprecatedFunction: tests/public/UtilsTest.php#L45
tests/public/UtilsTest.php:45:39: DeprecatedFunction: The function checkserviceurl has been marked as deprecated (see https://psalm.dev/201)
PropertyNotSetInConstructor: tests/src/Cas/Protocol/Cas20Test.php#L16
tests/src/Cas/Protocol/Cas20Test.php:16:27: PropertyNotSetInConstructor: Property SimpleSAML\Casserver\Cas20Test::$document is not defined in constructor of SimpleSAML\Casserver\Cas20Test or in any methods called in the constructor (see https://psalm.dev/074)