Skip to content

Merge pull request #8 from simplesamlphp/dependabot/github_actions/al… #152

Merge pull request #8 from simplesamlphp/dependabot/github_actions/al…

Merge pull request #8 from simplesamlphp/dependabot/github_actions/al… #152

Triggered via push August 27, 2024 06:55
Status Success
Total duration 2m 48s
Artifacts

php.yml

on: push
Matrix: unit-tests-linux
Matrix: unit-tests-windows
Code coverage
7s
Code coverage
Cleanup artifacts
4s
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)