Fix duplicate date-header #149
Annotations
12 errors and 1 warning
src/Controller/DiscoPower.php#L17
src/Controller/DiscoPower.php:17:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\Component\HttpFoundation\Response does not exist (see https://psalm.dev/200)
|
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)
|
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)
|
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)
|
src/PowerIdPDisco.php#L238
src/PowerIdPDisco.php:238: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)
|
src/PowerIdPDisco.php#L293
src/PowerIdPDisco.php:293: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)
|
src/PowerIdPDisco.php#L293
src/PowerIdPDisco.php:293:16: MismatchingDocblockReturnType: Docblock has incorrect return type 'Symfony\Component\HttpFoundation\Response', should be 'SimpleSAML\XHTML\Template' (see https://psalm.dev/142)
|
src/PowerIdPDisco.php#L295
src/PowerIdPDisco.php:295:5: MethodSignatureMismatch: Method SimpleSAML\Module\discopower\PowerIdPDisco::handleRequest with return type 'SimpleSAML\XHTML\Template' is different to return type 'void' of inherited method SimpleSAML\XHTML\IdPDisco::handleRequest (see https://psalm.dev/042)
|
src/PowerIdPDisco.php#L394
src/PowerIdPDisco.php:394:16: RedundantCast: Redundant cast to string (see https://psalm.dev/262)
|
src/PowerIdPDisco.php#L398
src/PowerIdPDisco.php:398:17: DocblockTypeContradiction: string does not contain false (see https://psalm.dev/155)
|
tests/src/Controller/DiscoPowerTest.php#L64
tests/src/Controller/DiscoPowerTest.php:64:14: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\Component\HttpFoundation\Response does not exist (see https://psalm.dev/200)
|
|
tests/src/Controller/DiscoPowerTest.php#L85
tests/src/Controller/DiscoPowerTest.php:85:16: DocblockTypeContradiction: Cannot resolve types for $r - docblock-defined type SimpleSAML\Component\HttpFoundation\Response does not contain Symfony\Component\HttpFoundation\StreamedResponse (see https://psalm.dev/155)
|
This job failed
Loading