Skip to content

chore: craft 5 support #1

chore: craft 5 support

chore: craft 5 support #1

Triggered via pull request April 24, 2024 12:25
Status Failure
Total duration 44s
Artifacts

code-analysis.yaml

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

Annotations

10 errors
PHPStan: src/Audit.php#L253
Parameter #1 $element of method superbig\audit\services\AuditService::onSaveElement() expects craft\base\Element, craft\base\ElementInterface given.
PHPStan: src/console/controllers/DefaultController.php#L61
Call to static method error() on an unknown class superbig\audit\console\controllers\Console.
PHPStan: src/controllers/DefaultController.php#L37
PHPDoc type array|bool|int of property superbig\audit\controllers\DefaultController::$allowAnonymous is not covariant with PHPDoc type array<int|string>|bool|int of overridden property craft\web\Controller::$allowAnonymous.
PHPStan: src/controllers/DefaultController.php#L84
Parameter #1 $id of method superbig\audit\services\AuditService::getEventsBySessionId() expects null, string given.
PHPStan: src/controllers/GeoController.php#L66
Parameter #1 $status of class yii\web\HttpException constructor expects int, string given.
PHPStan: src/controllers/GeoController.php#L72
Method superbig\audit\controllers\GeoController::actionUpdateDatabase() with return type void returns mixed but should not return anything.
PHPStan: src/controllers/GeoController.php#L78
Method superbig\audit\controllers\GeoController::actionUpdateDatabase() with return type void returns mixed but should not return anything.
PHPStan: src/controllers/GeoController.php#L81
Method superbig\audit\controllers\GeoController::actionUpdateDatabase() with return type void returns mixed but should not return anything.
PHPStan: src/migrations/Install.php#L112
Method craft\db\Connection::getIndexName() invoked with 3 parameters, 0 required.
PHPStan: src/migrations/Install.php#L123
Method craft\db\Connection::getIndexName() invoked with 3 parameters, 0 required.