Skip to content

Fix duplicate date-header #155

Fix duplicate date-header

Fix duplicate date-header #155

Triggered via pull request August 22, 2024 08:53
Status Failure
Total duration 2m 15s
Artifacts

php.yml

on: pull_request
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

24 errors
ArgumentTypeCoercion: src/Controller/DiscoPower.php#L61
src/Controller/DiscoPower.php:61:48: ArgumentTypeCoercion: Argument 2 of preg_match expects string, but parent type null|scalar provided (see https://psalm.dev/193)
PossiblyNullArgument: src/Controller/DiscoPower.php#L61
src/Controller/DiscoPower.php:61:48: PossiblyNullArgument: Argument 2 of preg_match cannot be null, possibly null value provided (see https://psalm.dev/078)
ArgumentTypeCoercion: src/Controller/DiscoPower.php#L64
src/Controller/DiscoPower.php:64:36: ArgumentTypeCoercion: Argument 1 of Symfony\Component\HttpFoundation\JsonResponse::setCallback expects null|string, but parent type null|scalar provided (see https://psalm.dev/193)
PossiblyInvalidArgument: src/PowerIdPDisco.php#L239
src/PowerIdPDisco.php:239:41: PossiblyInvalidArgument: Argument 1 of parse_url expects string, but possibly different type non-empty-array<int|non-empty-string, array<int|non-empty-string, mixed>|string>|string provided (see https://psalm.dev/092)
ImplementedReturnTypeMismatch: src/PowerIdPDisco.php#L294
src/PowerIdPDisco.php:294:16: ImplementedReturnTypeMismatch: The inherited return type 'null' for SimpleSAML\XHTML\IdPDisco::handleRequest is different to the implemented return type for SimpleSAML\Module\discopower\PowerIdPDisco::handlerequest 'Symfony\Component\HttpFoundation\Response' (see https://psalm.dev/123)
MethodSignatureMismatch: src/PowerIdPDisco.php#L296
src/PowerIdPDisco.php:296:5: MethodSignatureMismatch: Method SimpleSAML\Module\discopower\PowerIdPDisco::handleRequest with return type 'Symfony\Component\HttpFoundation\Response' is different to return type 'void' of inherited method SimpleSAML\XHTML\IdPDisco::handleRequest (see https://psalm.dev/042)
RiskyTruthyFalsyComparison: src/PowerIdPDisco.php#L318
src/PowerIdPDisco.php:318:18: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RedundantCast: src/PowerIdPDisco.php#L395
src/PowerIdPDisco.php:395:16: RedundantCast: Redundant cast to string (see https://psalm.dev/262)
DocblockTypeContradiction: src/PowerIdPDisco.php#L399
src/PowerIdPDisco.php:399:17: DocblockTypeContradiction: string does not contain false (see https://psalm.dev/155)
PossiblyUndefinedArrayOffset: src/PowerIdPDisco.php#L443
src/PowerIdPDisco.php:443:26: PossiblyUndefinedArrayOffset: Possibly undefined array key $tmp[1] on list{0: string, 1?: string} (see https://psalm.dev/167)
Unit tests, PHP 8.2, ubuntu-latest: src/PowerIdPDisco.php#L296
Declaration of SimpleSAML\Module\discopower\PowerIdPDisco::handleRequest(): Symfony\Component\HttpFoundation\Response must be compatible with SimpleSAML\XHTML\IdPDisco::handleRequest(): void
Unit tests, PHP 8.2, ubuntu-latest
Process completed with exit code 255.
Unit tests, PHP 8.3, ubuntu-latest: src/PowerIdPDisco.php#L296
Declaration of SimpleSAML\Module\discopower\PowerIdPDisco::handleRequest(): Symfony\Component\HttpFoundation\Response must be compatible with SimpleSAML\XHTML\IdPDisco::handleRequest(): void
Unit tests, PHP 8.3, ubuntu-latest
Process completed with exit code 255.
Unit tests, PHP 8.1, ubuntu-latest: src/PowerIdPDisco.php#L296
Declaration of SimpleSAML\Module\discopower\PowerIdPDisco::handleRequest(): Symfony\Component\HttpFoundation\Response must be compatible with SimpleSAML\XHTML\IdPDisco::handleRequest(): void
Unit tests, PHP 8.1, ubuntu-latest
Process completed with exit code 255.
Unit tests, PHP 8.2, windows-latest: src/PowerIdPDisco.php#L296
Declaration of SimpleSAML\Module\discopower\PowerIdPDisco::handleRequest(): Symfony\Component\HttpFoundation\Response must be compatible with SimpleSAML\XHTML\IdPDisco::handleRequest(): void
Unit tests, PHP 8.2, windows-latest
Process completed with exit code 1.
Unit tests, PHP 8.3, windows-latest
The job was canceled because "windows-latest_8_2" failed.
Unit tests, PHP 8.3, windows-latest: src/PowerIdPDisco.php#L296
Declaration of SimpleSAML\Module\discopower\PowerIdPDisco::handleRequest(): Symfony\Component\HttpFoundation\Response must be compatible with SimpleSAML\XHTML\IdPDisco::handleRequest(): void
Unit tests, PHP 8.1, windows-latest
The job was canceled because "windows-latest_8_2" failed.
Unit tests, PHP 8.3, windows-latest
Process completed with exit code 1.
Unit tests, PHP 8.1, windows-latest: src/PowerIdPDisco.php#L296
Declaration of SimpleSAML\Module\discopower\PowerIdPDisco::handleRequest(): Symfony\Component\HttpFoundation\Response must be compatible with SimpleSAML\XHTML\IdPDisco::handleRequest(): void
Unit tests, PHP 8.1, windows-latest
Process completed with exit code 1.