Skip to content

Github Actions: Add Phpstan #420

Github Actions: Add Phpstan

Github Actions: Add Phpstan #420

Triggered via pull request August 16, 2023 08:23
@yhabteabyhabteab
synchronize #187
phpstan
Status Failure
Total duration 4m 53s
Artifacts

php.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

60 errors
TooManyArguments: application/clicommands/ScheduleCommand.php#L43
application/clicommands/ScheduleCommand.php:43:17: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L61
application/clicommands/ScheduleCommand.php:61:21: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 4 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L102
application/clicommands/ScheduleCommand.php:102:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L103
application/clicommands/ScheduleCommand.php:103:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::debug - expecting 0 but saw 1 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L107
application/clicommands/ScheduleCommand.php:107:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L111
application/clicommands/ScheduleCommand.php:111:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L115
application/clicommands/ScheduleCommand.php:115:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 1 (see https://psalm.dev/026)
StringIncrement: application/controllers/ReportController.php#L79
application/controllers/ReportController.php:79:55: StringIncrement: Possibly unintended string increment (see https://psalm.dev/211)
PossiblyNullReference: application/controllers/ReportController.php#L157
application/controllers/ReportController.php:157:68: PossiblyNullReference: Cannot call method getName on possibly null value (see https://psalm.dev/083)
ImplicitToStringCast: application/controllers/ReportController.php#L198
application/controllers/ReportController.php:198:45: ImplicitToStringCast: Argument 1 of Icinga\Application\Hook\PdfexportHook::streamPdfFromHtml expects string, but Icinga\Module\Pdfexport\PrintableHtmlDocument provided with a __toString method (see https://psalm.dev/060)
TooFewArguments: application/clicommands/ListCommand.php#L73
application/clicommands/ListCommand.php:73:13: TooFewArguments: Too few arguments for printf, expecting at least 2 arguments (see https://psalm.dev/025)
TooFewArguments: application/clicommands/ListCommand.php#L124
application/clicommands/ListCommand.php:124:9: TooFewArguments: Too few arguments for printf, expecting at least 2 arguments (see https://psalm.dev/025)
TooManyArguments: application/clicommands/ScheduleCommand.php#L43
application/clicommands/ScheduleCommand.php:43:17: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L61
application/clicommands/ScheduleCommand.php:61:21: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 4 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L102
application/clicommands/ScheduleCommand.php:102:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L103
application/clicommands/ScheduleCommand.php:103:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::debug - expecting 0 but saw 1 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L107
application/clicommands/ScheduleCommand.php:107:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L111
application/clicommands/ScheduleCommand.php:111:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L115
application/clicommands/ScheduleCommand.php:115:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 1 (see https://psalm.dev/026)
StringIncrement: application/controllers/ReportController.php#L79
application/controllers/ReportController.php:79:55: StringIncrement: Possibly unintended string increment (see https://psalm.dev/211)
TooManyArguments: application/clicommands/ScheduleCommand.php#L43
application/clicommands/ScheduleCommand.php:43:17: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L61
application/clicommands/ScheduleCommand.php:61:21: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 4 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L102
application/clicommands/ScheduleCommand.php:102:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L103
application/clicommands/ScheduleCommand.php:103:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::debug - expecting 0 but saw 1 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L107
application/clicommands/ScheduleCommand.php:107:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L111
application/clicommands/ScheduleCommand.php:111:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L115
application/clicommands/ScheduleCommand.php:115:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 1 (see https://psalm.dev/026)
StringIncrement: application/controllers/ReportController.php#L79
application/controllers/ReportController.php:79:55: StringIncrement: Possibly unintended string increment (see https://psalm.dev/211)
PossiblyNullReference: application/controllers/ReportController.php#L157
application/controllers/ReportController.php:157:68: PossiblyNullReference: Cannot call method getName on possibly null value (see https://psalm.dev/083)
ImplicitToStringCast: application/controllers/ReportController.php#L198
application/controllers/ReportController.php:198:45: ImplicitToStringCast: Argument 1 of Icinga\Application\Hook\PdfexportHook::streamPdfFromHtml expects string, but Icinga\Module\Pdfexport\PrintableHtmlDocument provided with a __toString method (see https://psalm.dev/060)
TooFewArguments: application/clicommands/ListCommand.php#L73
application/clicommands/ListCommand.php:73:13: TooFewArguments: Too few arguments for printf, expecting at least 2 arguments (see https://psalm.dev/025)
TooFewArguments: application/clicommands/ListCommand.php#L124
application/clicommands/ListCommand.php:124:9: TooFewArguments: Too few arguments for printf, expecting at least 2 arguments (see https://psalm.dev/025)
TooManyArguments: application/clicommands/ScheduleCommand.php#L43
application/clicommands/ScheduleCommand.php:43:17: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L61
application/clicommands/ScheduleCommand.php:61:21: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 4 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L102
application/clicommands/ScheduleCommand.php:102:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L103
application/clicommands/ScheduleCommand.php:103:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::debug - expecting 0 but saw 1 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L107
application/clicommands/ScheduleCommand.php:107:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L111
application/clicommands/ScheduleCommand.php:111:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L115
application/clicommands/ScheduleCommand.php:115:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 1 (see https://psalm.dev/026)
StringIncrement: application/controllers/ReportController.php#L79
application/controllers/ReportController.php:79:55: StringIncrement: Possibly unintended string increment (see https://psalm.dev/211)
TooFewArguments: application/clicommands/ListCommand.php#L73
application/clicommands/ListCommand.php:73:13: TooFewArguments: Too few arguments for printf, expecting at least 2 arguments (see https://psalm.dev/025)
TooFewArguments: application/clicommands/ListCommand.php#L124
application/clicommands/ListCommand.php:124:9: TooFewArguments: Too few arguments for printf, expecting at least 2 arguments (see https://psalm.dev/025)
TooManyArguments: application/clicommands/ScheduleCommand.php#L43
application/clicommands/ScheduleCommand.php:43:17: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L61
application/clicommands/ScheduleCommand.php:61:21: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 4 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L102
application/clicommands/ScheduleCommand.php:102:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L103
application/clicommands/ScheduleCommand.php:103:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::debug - expecting 0 but saw 1 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L107
application/clicommands/ScheduleCommand.php:107:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L111
application/clicommands/ScheduleCommand.php:111:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L115
application/clicommands/ScheduleCommand.php:115:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 1 (see https://psalm.dev/026)
StringIncrement: application/controllers/ReportController.php#L79
application/controllers/ReportController.php:79:55: StringIncrement: Possibly unintended string increment (see https://psalm.dev/211)
TooFewArguments: application/clicommands/ListCommand.php#L73
application/clicommands/ListCommand.php:73:13: TooFewArguments: Too few arguments for printf, expecting at least 2 arguments (see https://psalm.dev/025)
TooFewArguments: application/clicommands/ListCommand.php#L124
application/clicommands/ListCommand.php:124:9: TooFewArguments: Too few arguments for printf, expecting at least 2 arguments (see https://psalm.dev/025)
TooManyArguments: application/clicommands/ScheduleCommand.php#L43
application/clicommands/ScheduleCommand.php:43:17: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L61
application/clicommands/ScheduleCommand.php:61:21: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 4 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L102
application/clicommands/ScheduleCommand.php:102:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::error - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L103
application/clicommands/ScheduleCommand.php:103:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::debug - expecting 0 but saw 1 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L107
application/clicommands/ScheduleCommand.php:107:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 2 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L111
application/clicommands/ScheduleCommand.php:111:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 3 (see https://psalm.dev/026)
TooManyArguments: application/clicommands/ScheduleCommand.php#L115
application/clicommands/ScheduleCommand.php:115:13: TooManyArguments: Too many arguments for Icinga\Application\Logger::info - expecting 0 but saw 1 (see https://psalm.dev/026)
StringIncrement: application/controllers/ReportController.php#L79
application/controllers/ReportController.php:79:55: StringIncrement: Possibly unintended string increment (see https://psalm.dev/211)