Skip to content

Remove unused use-statements and order them alphabetically #395

Remove unused use-statements and order them alphabetically

Remove unused use-statements and order them alphabetically #395

Triggered via push January 15, 2024 18:01
Status Success
Total duration 3m 5s
Artifacts 1

php.yml

on: push
Matrix: unit-tests-linux
Matrix: unit-tests-windows
Code coverage
13s
Code coverage
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 20 warnings
DeprecatedClass: src/Controller/AuthProcess.php#L89
src/Controller/AuthProcess.php:89:16: DeprecatedClass: Class SimpleSAML\HTTP\RunnableResponse is marked as deprecated (see https://psalm.dev/098)
ArgumentTypeCoercion: src/Controller/AuthProcess.php#L106
src/Controller/AuthProcess.php:106:46: ArgumentTypeCoercion: Argument 1 of SimpleSAML\Auth\State::loadState expects string, but parent type scalar provided (see https://psalm.dev/193)
ArgumentTypeCoercion: src/Controller/AuthProcess.php#L108
src/Controller/AuthProcess.php:108:70: ArgumentTypeCoercion: Argument 1 of SimpleSAML\Module\webauthn\WebAuthn\WebAuthnAbstractEvent::base64urlDecode expects string, but parent type null|scalar provided (see https://psalm.dev/193)
PossiblyNullArgument: src/Controller/AuthProcess.php#L108
src/Controller/AuthProcess.php:108:70: PossiblyNullArgument: Argument 1 of SimpleSAML\Module\webauthn\WebAuthn\WebAuthnAbstractEvent::base64urlDecode cannot be null, possibly null value provided (see https://psalm.dev/078)
ArgumentTypeCoercion: src/Controller/AuthProcess.php#L120
src/Controller/AuthProcess.php:120:46: ArgumentTypeCoercion: Argument 1 of base64_decode expects string, but parent type null|scalar provided (see https://psalm.dev/193)
PossiblyNullArgument: src/Controller/AuthProcess.php#L120
src/Controller/AuthProcess.php:120:46: PossiblyNullArgument: Argument 1 of base64_decode cannot be null, possibly null value provided (see https://psalm.dev/078)
ArgumentTypeCoercion: src/Controller/AuthProcess.php#L158
src/Controller/AuthProcess.php:158:13: ArgumentTypeCoercion: Argument 1 of SimpleSAML\Module\webauthn\WebAuthn\WebAuthnAuthenticationEvent::__construct expects string, but parent type null|scalar provided (see https://psalm.dev/193)
PossiblyNullArgument: src/Controller/AuthProcess.php#L158
src/Controller/AuthProcess.php:158:13: PossiblyNullArgument: Argument 1 of SimpleSAML\Module\webauthn\WebAuthn\WebAuthnAuthenticationEvent::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
ArgumentTypeCoercion: src/Controller/AuthProcess.php#L161
src/Controller/AuthProcess.php:161:27: ArgumentTypeCoercion: Argument 1 of base64_decode expects string, but parent type null|scalar provided (see https://psalm.dev/193)
PossiblyNullArgument: src/Controller/AuthProcess.php#L161
src/Controller/AuthProcess.php:161:27: PossiblyNullArgument: Argument 1 of base64_decode cannot be null, possibly null value provided (see https://psalm.dev/078)
PossiblyNullOperand: src/Controller/RegProcess.php#L156
src/Controller/RegProcess.php:156:13: PossiblyNullOperand: Cannot concatenate with a possibly null null|scalar (see https://psalm.dev/080)
MissingReturnType: src/Controller/WebAuthn.php#L91
src/Controller/WebAuthn.php:91:28: MissingReturnType: Method SimpleSAML\Module\webauthn\Controller\WebAuthn::workflowStateMachine does not have a return type, expecting 1|2|4 (see https://psalm.dev/050)
MissingParamType: src/Controller/WebAuthn.php#L91
src/Controller/WebAuthn.php:91:49: MissingParamType: Parameter $state has no provided type (see https://psalm.dev/154)
MissingParamType: src/Controller/WebAuthn.php#L121
src/Controller/WebAuthn.php:121:45: MissingParamType: Parameter $moduleConfig has no provided type (see https://psalm.dev/154)
MissingParamType: src/Controller/WebAuthn.php#L121
src/Controller/WebAuthn.php:121:61: MissingParamType: Parameter $stateData has no provided type (see https://psalm.dev/154)
MissingConstructor: src/WebAuthn/StateData.php#L16
src/WebAuthn/StateData.php:16:18: MissingConstructor: SimpleSAML\Module\webauthn\WebAuthn\StateData has an uninitialized property SimpleSAML\Module\webauthn\WebAuthn\StateData::$store, but no constructor (see https://psalm.dev/073)
MissingConstructor: src/WebAuthn/StateData.php#L38
src/WebAuthn/StateData.php:38:19: MissingConstructor: SimpleSAML\Module\webauthn\WebAuthn\StateData has an uninitialized property SimpleSAML\Module\webauthn\WebAuthn\StateData::$usernameAttrib, but no constructor (see https://psalm.dev/073)
MissingConstructor: src/WebAuthn/StateData.php#L45
src/WebAuthn/StateData.php:45:19: MissingConstructor: SimpleSAML\Module\webauthn\WebAuthn\StateData has an uninitialized property SimpleSAML\Module\webauthn\WebAuthn\StateData::$displaynameAttrib, but no constructor (see https://psalm.dev/073)
MissingConstructor: src/WebAuthn/StateData.php#L50
src/WebAuthn/StateData.php:50:17: MissingConstructor: SimpleSAML\Module\webauthn\WebAuthn\StateData has an uninitialized property SimpleSAML\Module\webauthn\WebAuthn\StateData::$requestTokenModel, but no constructor (see https://psalm.dev/073)
MissingConstructor: src/WebAuthn/StateData.php#L58
src/WebAuthn/StateData.php:58:17: MissingConstructor: SimpleSAML\Module\webauthn\WebAuthn\StateData has an uninitialized property SimpleSAML\Module\webauthn\WebAuthn\StateData::$useInflowRegistration, but no constructor (see https://psalm.dev/073)
PropertyNotSetInConstructor: tests/src/Controller/AuthProcessTest.php#L24
tests/src/Controller/AuthProcessTest.php:24:29: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\webauthn\Controller\AuthProcessTest::$config is not defined in constructor of SimpleSAML\Test\Module\webauthn\Controller\AuthProcessTest or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/src/Controller/AuthProcessTest.php#L27
tests/src/Controller/AuthProcessTest.php:27:22: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\webauthn\Controller\AuthProcessTest::$logger is not defined in constructor of SimpleSAML\Test\Module\webauthn\Controller\AuthProcessTest or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/src/Controller/AuthProcessTest.php#L30
tests/src/Controller/AuthProcessTest.php:30:23: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\webauthn\Controller\AuthProcessTest::$session is not defined in constructor of SimpleSAML\Test\Module\webauthn\Controller\AuthProcessTest or in any methods called in the constructor (see https://psalm.dev/074)
DeprecatedClass: tests/src/Controller/AuthProcessTest.php#L96
tests/src/Controller/AuthProcessTest.php:96:9: DeprecatedClass: Class SimpleSAML\HTTP\RunnableResponse is marked as deprecated (see https://psalm.dev/098)
PropertyNotSetInConstructor: tests/src/Controller/ManageTokenTest.php#L24
tests/src/Controller/ManageTokenTest.php:24:29: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\webauthn\Controller\ManageTokenTest::$config is not defined in constructor of SimpleSAML\Test\Module\webauthn\Controller\ManageTokenTest or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/src/Controller/ManageTokenTest.php#L27
tests/src/Controller/ManageTokenTest.php:27:15: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\webauthn\Controller\ManageTokenTest::$module_config is not defined in constructor of SimpleSAML\Test\Module\webauthn\Controller\ManageTokenTest or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/src/Controller/ManageTokenTest.php#L30
tests/src/Controller/ManageTokenTest.php:30:22: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\webauthn\Controller\ManageTokenTest::$logger is not defined in constructor of SimpleSAML\Test\Module\webauthn\Controller\ManageTokenTest or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/src/Controller/ManageTokenTest.php#L33
tests/src/Controller/ManageTokenTest.php:33:23: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\webauthn\Controller\ManageTokenTest::$session is not defined in constructor of SimpleSAML\Test\Module\webauthn\Controller\ManageTokenTest or in any methods called in the constructor (see https://psalm.dev/074)
DeprecatedClass: tests/src/Controller/ManageTokenTest.php#L98
tests/src/Controller/ManageTokenTest.php:98:21: DeprecatedClass: Class SimpleSAML\HTTP\RunnableResponse is marked as deprecated (see https://psalm.dev/098)
PropertyNotSetInConstructor: tests/src/Controller/RegProcessTest.php#L23
tests/src/Controller/RegProcessTest.php:23:29: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\webauthn\Controller\RegProcessTest::$config is not defined in constructor of SimpleSAML\Test\Module\webauthn\Controller\RegProcessTest or in any methods called in the constructor (see https://psalm.dev/074)

Artifacts

Produced during runtime
Name Size
coverage-data Expired
2.21 MB