Skip to content

PhpStan 2

PhpStan 2 #967

Triggered via pull request November 17, 2024 09:31
@CatoTHCatoTH
synchronize #979
v4-phpstan2
Status Failure
Total duration 1m 9s
Artifacts

phpstan-evaluate-pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
evaluate-pr: components/updater/available-updates.php#L25
If condition is always false.
evaluate-pr: controllers/MotionExportTraits.php (in context of class app/controllers/MotionController)#L170
PHPDoc tag @var with type app\models\db\TexTemplate is not subtype of native type null.
evaluate-pr: controllers/MotionExportTraits.php (in context of class app/controllers/MotionController)#L252
PHPDoc tag @var with type array<app\models\db\IMotion> is not subtype of native type mixed.
evaluate-pr: controllers/PagesController.php#L418
Method app\models\http\ResponseInterface@anonymous/controllers/PagesController.php:410::renderYii() never returns null so it can be removed from the return type.
evaluate-pr: models/db/AmendmentSection.php#L36
PHPDoc tag @var with type app\models\db\ConsultationSettingsMotionSection is not subtype of native type null.
evaluate-pr: models/db/Consultation.php#L588
Strict comparison using !== between int<min, -3>|int<-1, max> and -2 will always evaluate to true.
evaluate-pr: models/db/Consultation.php#L743
Argument of an invalid type list<string>|false supplied for foreach, only iterables are supported.
evaluate-pr: models/notifications/Base.php#L27
PHPDoc tag @var with type app\models\notifications\IEmailAdmin is not subtype of native type $this(app\models\notifications\Base).
evaluate-pr: models/notifications/Base.php#L48
PHPDoc tag @var with type app\models\notifications\IEmailUser is not subtype of native type $this(app\models\notifications\Base).
evaluate-pr: models/sectionTypes/ISectionType.php#L156
Parameter #2 $replace of function str_replace expects array<string>|string, array<int, int<1, max>|string> given.