Skip to content

Migrate Psalm to PHPStan #442

Migrate Psalm to PHPStan

Migrate Psalm to PHPStan #442

Triggered via push August 6, 2024 19:59
Status Failure
Total duration 1m 35s
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

10 errors
Quality control: src/Controller/AuthProcess.php#L238
Offset 'FIDO2PasswordlessAu…' does not exist on array{FIDO2AuthSuccessful: mixed, FIDO2WantsRegister: bool}.
Quality control: src/Controller/PushbackUserPass.php#L97
Anonymous class extends unknown class SimpleSAML\Module\webauthn\Auth\Source\AuthSourceOverloader.
Quality control: src/Controller/PushbackUserPass.php#L97
Class class@anonymous/Controller/PushbackUserPass.php:97 does not have a constructor and must be instantiated without any parameters.
Quality control: src/Controller/PushbackUserPass.php#L104
Call to an undefined method class@anonymous/Controller/PushbackUserPass.php:97::login().
Quality control: src/Controller/PushbackUserPass.php#L120
Method SimpleSAML\Module\webauthn\Controller\PushbackUserPass::main() should return SimpleSAML\HTTP\RunnableResponse|Symfony\Component\HttpFoundation\RedirectResponse but return statement is missing.
Quality control: src/Controller/RegProcess.php#L220
Call to function array_key_exists() with 'Registration' and array{FIDO2Tokens: array{array{string, string, -1|int<1, max>, non-falsy-string, int, int, 0|1}}} will always evaluate to false.
Quality control: src/Store.php#L29
Constructor of class SimpleSAML\Module\webauthn\Store has an unused parameter $config.
Quality control: src/WebAuthn/AAGUID.php#L48
Method SimpleSAML\Module\webauthn\WebAuthn\AAGUID::__construct() with return type void returns null but should not return anything.
Quality control: src/WebAuthn/AAGUID.php#L70
Static property SimpleSAML\Module\webauthn\WebAuthn\AAGUID::$instance (static(SimpleSAML\Module\webauthn\WebAuthn\AAGUID)) does not accept SimpleSAML\Module\webauthn\WebAuthn\AAGUID.
Quality control: src/WebAuthn/AAGUID.php#L72
Method SimpleSAML\Module\webauthn\WebAuthn\AAGUID::getInstance() should return static(SimpleSAML\Module\webauthn\WebAuthn\AAGUID) but returns SimpleSAML\Module\webauthn\WebAuthn\AAGUID.