This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
declare strict types #139
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
php.yml
on: push
Annotations
19 errors and 7 warnings
ArgumentTypeCoercion:
src/Controller/OTP.php#L104
src/Controller/OTP.php:104:46: ArgumentTypeCoercion: Argument 1 of SimpleSAML\Auth\State::loadState expects string, but parent type scalar provided (see https://psalm.dev/193)
|
ArgumentTypeCoercion:
src/Controller/OTP.php#L132
src/Controller/OTP.php:132:46: ArgumentTypeCoercion: Argument 1 of SimpleSAML\Auth\State::loadState expects string, but parent type scalar provided (see https://psalm.dev/193)
|
InvalidArgument:
src/Controller/OTP.php#L154
src/Controller/OTP.php:154:83: InvalidArgument: Argument 2 of Symfony\Component\HttpFoundation\StreamedResponse::__construct expects int, but list{string, array{AuthState: string}} provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Controller/OTP.php#L170
src/Controller/OTP.php:170:92: InvalidArgument: Argument 2 of Symfony\Component\HttpFoundation\StreamedResponse::__construct expects int, but list{array<array-key, mixed>} provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Controller/OTP.php#L178
src/Controller/OTP.php:178:83: InvalidArgument: Argument 2 of Symfony\Component\HttpFoundation\StreamedResponse::__construct expects int, but list{string, array{AuthState: string}} provided (see https://psalm.dev/004)
|
ArgumentTypeCoercion:
src/Controller/OTP.php#L196
src/Controller/OTP.php:196:46: ArgumentTypeCoercion: Argument 1 of SimpleSAML\Auth\State::loadState expects string, but parent type scalar provided (see https://psalm.dev/193)
|
ArgumentTypeCoercion:
src/Controller/OTP.php#L229
src/Controller/OTP.php:229:46: ArgumentTypeCoercion: Argument 1 of SimpleSAML\Auth\State::loadState expects string, but parent type scalar provided (see https://psalm.dev/193)
|
InvalidArgument:
src/Controller/OTP.php#L267
src/Controller/OTP.php:267:79: InvalidArgument: Argument 2 of Symfony\Component\HttpFoundation\StreamedResponse::__construct expects int, but list{string, array{AuthState: string}} provided (see https://psalm.dev/004)
|
Quality control
Process completed with exit code 2.
|
ParamNameMismatch:
tests/src/Controller/OTPTest.php#L164
tests/src/Controller/OTPTest.php:164:51: ParamNameMismatch: Argument 1 of _home_runner_work_simplesamlphp_module_cmdotcom_simplesamlphp_module_cmdotcom_tests_src_Controller_OTPTest_php_163_4081::warning has wrong name $str, expecting $string as defined by SimpleSAML\Logger::warning (see https://psalm.dev/230)
|
UndefinedClass:
tests/src/Controller/OTPTest.php#L187
tests/src/Controller/OTPTest.php:187:33: UndefinedClass: Class, interface or enum named SimpleSAML\HTTP\RunnableResponse does not exist (see https://psalm.dev/019)
|
UndefinedMethod:
tests/src/Controller/OTPTest.php#L189
tests/src/Controller/OTPTest.php:189:82: UndefinedMethod: Method Symfony\Component\HttpFoundation\StreamedResponse::getCallable does not exist (see https://psalm.dev/022)
|
UndefinedMethod:
tests/src/Controller/OTPTest.php#L190
tests/src/Controller/OTPTest.php:190:101: UndefinedMethod: Method Symfony\Component\HttpFoundation\StreamedResponse::getArguments does not exist (see https://psalm.dev/022)
|
UndefinedClass:
tests/src/Controller/OTPTest.php#L226
tests/src/Controller/OTPTest.php:226:33: UndefinedClass: Class, interface or enum named SimpleSAML\HTTP\RunnableResponse does not exist (see https://psalm.dev/019)
|
UndefinedMethod:
tests/src/Controller/OTPTest.php#L228
tests/src/Controller/OTPTest.php:228:82: UndefinedMethod: Method Symfony\Component\HttpFoundation\StreamedResponse::getCallable does not exist (see https://psalm.dev/022)
|
UndefinedMethod:
tests/src/Controller/OTPTest.php#L231
tests/src/Controller/OTPTest.php:231:24: UndefinedMethod: Method Symfony\Component\HttpFoundation\StreamedResponse::getArguments does not exist (see https://psalm.dev/022)
|
ParamNameMismatch:
tests/src/Controller/OTPTest.php#L272
tests/src/Controller/OTPTest.php:272:48: ParamNameMismatch: Argument 1 of _home_runner_work_simplesamlphp_module_cmdotcom_simplesamlphp_module_cmdotcom_tests_src_Controller_OTPTest_php_271_7862::info has wrong name $str, expecting $string as defined by SimpleSAML\Logger::info (see https://psalm.dev/230)
|
UndefinedClass:
tests/src/Controller/OTPTest.php#L293
tests/src/Controller/OTPTest.php:293:33: UndefinedClass: Class, interface or enum named SimpleSAML\HTTP\RunnableResponse does not exist (see https://psalm.dev/019)
|
UndefinedMethod:
tests/src/Controller/OTPTest.php#L295
tests/src/Controller/OTPTest.php:295:82: UndefinedMethod: Method Symfony\Component\HttpFoundation\StreamedResponse::getCallable does not exist (see https://psalm.dev/022)
|
PossiblyNullOperand:
src/Utils/PhoneNumber.php#L43
src/Utils/PhoneNumber.php:43:23: PossiblyNullOperand: Cannot concatenate with a possibly null int|null (see https://psalm.dev/080)
|
PossiblyNullOperand:
src/Utils/PhoneNumber.php#L43
src/Utils/PhoneNumber.php:43:50: PossiblyNullOperand: Cannot concatenate with a possibly null null|string (see https://psalm.dev/080)
|
PropertyNotSetInConstructor:
tests/src/Controller/OTPTest.php#L33
tests/src/Controller/OTPTest.php:33:29: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\cmdotcom\Controller\OTPTest::$config is not defined in constructor of SimpleSAML\Test\Module\cmdotcom\Controller\OTPTest or in any methods called in the constructor (see https://psalm.dev/074)
|
PropertyNotSetInConstructor:
tests/src/Controller/OTPTest.php#L36
tests/src/Controller/OTPTest.php:36:26: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\cmdotcom\Controller\OTPTest::$httpUtils is not defined in constructor of SimpleSAML\Test\Module\cmdotcom\Controller\OTPTest or in any methods called in the constructor (see https://psalm.dev/074)
|
PropertyNotSetInConstructor:
tests/src/Controller/OTPTest.php#L39
tests/src/Controller/OTPTest.php:39:23: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\cmdotcom\Controller\OTPTest::$session is not defined in constructor of SimpleSAML\Test\Module\cmdotcom\Controller\OTPTest or in any methods called in the constructor (see https://psalm.dev/074)
|
PropertyNotSetInConstructor:
tests/src/Controller/OTPTest.php#L42
tests/src/Controller/OTPTest.php:42:22: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\cmdotcom\Controller\OTPTest::$otpHash is not defined in constructor of SimpleSAML\Test\Module\cmdotcom\Controller\OTPTest or in any methods called in the constructor (see https://psalm.dev/074)
|
PropertyNotSetInConstructor:
tests/src/Utils/PhoneNumberTest.php#L19
tests/src/Utils/PhoneNumberTest.php:19:30: PropertyNotSetInConstructor: Property SimpleSAML\Test\Module\cmdotcom\Utils\PhoneNumberTest::$phoneNumberUtils is not defined in constructor of SimpleSAML\Test\Module\cmdotcom\Utils\PhoneNumberTest or in any private or final methods called in the constructor (see https://psalm.dev/074)
|