Skip to content

Bump super-linter/super-linter from 6 to 7 in the all-actions group #149

Bump super-linter/super-linter from 6 to 7 in the all-actions group

Bump super-linter/super-linter from 6 to 7 in the all-actions group #149

Triggered via pull request August 19, 2024 20:46
Status Success
Total duration 2m 52s
Artifacts

php.yml

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

Annotations

10 errors
MissingClassConstType: src/Auth/Source/Twitter.php#L25
src/Auth/Source/Twitter.php:25:18: MissingClassConstType: Class constant "SimpleSAML\Module\authtwitter\Auth\Source\Twitter::STAGE_INIT" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: src/Auth/Source/Twitter.php#L30
src/Auth/Source/Twitter.php:30:18: MissingClassConstType: Class constant "SimpleSAML\Module\authtwitter\Auth\Source\Twitter::AUTHID" should have a declared type. (see https://psalm.dev/359)
PossiblyNullPropertyAssignmentValue: src/Auth/Source/Twitter.php#L62
src/Auth/Source/Twitter.php:62:24: PossiblyNullPropertyAssignmentValue: $this->scope with non-nullable declared type 'string' cannot be assigned nullable type 'null|string' (see https://psalm.dev/148)
ArgumentTypeCoercion: src/Auth/Source/Twitter.php#L143
src/Auth/Source/Twitter.php:143:13: ArgumentTypeCoercion: Argument 2 of League\OAuth1\Client\Server\Twitter::getTokenCredentials expects string, but parent type null|scalar provided (see https://psalm.dev/193)
PossiblyNullArgument: src/Auth/Source/Twitter.php#L143
src/Auth/Source/Twitter.php:143:13: PossiblyNullArgument: Argument 2 of League\OAuth1\Client\Server\Twitter::getTokenCredentials cannot be null, possibly null value provided (see https://psalm.dev/078)
ArgumentTypeCoercion: src/Auth/Source/Twitter.php#L144
src/Auth/Source/Twitter.php:144:13: ArgumentTypeCoercion: Argument 3 of League\OAuth1\Client\Server\Twitter::getTokenCredentials expects string, but parent type null|scalar provided (see https://psalm.dev/193)
PossiblyNullArgument: src/Auth/Source/Twitter.php#L144
src/Auth/Source/Twitter.php:144:13: PossiblyNullArgument: Argument 3 of League\OAuth1\Client\Server\Twitter::getTokenCredentials cannot be null, possibly null value provided (see https://psalm.dev/078)
ArgumentTypeCoercion: src/Controller/Twitter.php#L54
src/Controller/Twitter.php:54:54: ArgumentTypeCoercion: Argument 1 of base64_decode expects string, but parent type scalar provided (see https://psalm.dev/193)
DocblockTypeContradiction: src/Controller/Twitter.php#L57
src/Controller/Twitter.php:57:13: DocblockTypeContradiction: Cannot resolve types for $state - docblock-defined type array<array-key, mixed> does not contain null (see https://psalm.dev/155)
InvalidReturnType: src/Controller/Twitter.php#L84
src/Controller/Twitter.php:84:40: InvalidReturnType: /home/runner/work/simplesamlphp-module-authtwitter/simplesamlphp-module-authtwitter/src/controller/twitter.php:84:2610:-:closure is not expected to return, but it does, either implicitly or explicitly (see https://psalm.dev/011)