这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix reply_markup serialization issue and add more tests #105

Fix reply_markup serialization issue and add more tests

Fix reply_markup serialization issue and add more tests #105

Triggered via push November 30, 2024 22:08
Status Failure
Total duration 33s
Artifacts

psalm.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PropertyNotSetInConstructor: tests/DialogConfigurableStepsTest.php#L44
tests/DialogConfigurableStepsTest.php:44:23: PropertyNotSetInConstructor: Property KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_44_1271::$bot is not defined in constructor of KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_44_1271 or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/DialogConfigurableStepsTest.php#L62
tests/DialogConfigurableStepsTest.php:62:23: PropertyNotSetInConstructor: Property KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_62_1804::$bot is not defined in constructor of KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_62_1804 or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/DialogConfigurableStepsTest.php#L90
tests/DialogConfigurableStepsTest.php:90:23: PropertyNotSetInConstructor: Property KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_90_2629::$bot is not defined in constructor of KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_90_2629 or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/DialogConfigurableStepsTest.php#L123
tests/DialogConfigurableStepsTest.php:123:23: PropertyNotSetInConstructor: Property KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_123_3788::$bot is not defined in constructor of KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_123_3788 or in any methods called in the constructor (see https://psalm.dev/074)
NonInvariantDocblockPropertyType: tests/DialogConfigurableStepsTest.php#L150
tests/DialogConfigurableStepsTest.php:150:29: NonInvariantDocblockPropertyType: Property KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_146_4535::$steps has type array<array-key, mixed>, not invariant with KootLabs\TelegramBotDialogs\Dialog::$steps of type list<KootLabs\TelegramBotDialogs\StepConfiguration|string> (see https://psalm.dev/267)
NonInvariantDocblockPropertyType: tests/DialogConfigurableStepsTest.php#L193
tests/DialogConfigurableStepsTest.php:193:29: NonInvariantDocblockPropertyType: Property KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_190_5999::$steps has type array<array-key, mixed>, not invariant with KootLabs\TelegramBotDialogs\Dialog::$steps of type list<KootLabs\TelegramBotDialogs\StepConfiguration|string> (see https://psalm.dev/267)
NonInvariantDocblockPropertyType: tests/DialogConfigurableStepsTest.php#L222
tests/DialogConfigurableStepsTest.php:222:29: NonInvariantDocblockPropertyType: Property KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_220_6984::$steps has type array<array-key, mixed>, not invariant with KootLabs\TelegramBotDialogs\Dialog::$steps of type list<KootLabs\TelegramBotDialogs\StepConfiguration|string> (see https://psalm.dev/267)
NonInvariantDocblockPropertyType: tests/DialogConfigurableStepsTest.php#L249
tests/DialogConfigurableStepsTest.php:249:29: NonInvariantDocblockPropertyType: Property KootLabs\TelegramBotDialogs\Tests\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_DialogConfigurableStepsTest_php_244_7667::$steps has type array<array-key, mixed>, not invariant with KootLabs\TelegramBotDialogs\Dialog::$steps of type list<KootLabs\TelegramBotDialogs\StepConfiguration|string> (see https://psalm.dev/267)
PropertyNotSetInConstructor: tests/Fakes/FakeBot.php#L17
tests/Fakes/FakeBot.php:17:20: PropertyNotSetInConstructor: Property KootLabs\TelegramBotDialogs\Tests\Fakes\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_Fakes_FakeBot_php_17_334::$accessToken is not defined in constructor of KootLabs\TelegramBotDialogs\Tests\Fakes\_home_runner_work_telegram_bot_dialogs_telegram_bot_dialogs_tests_Fakes_FakeBot_php_17_334 or in any methods called in the constructor (see https://psalm.dev/074)
psalm
Process completed with exit code 2.