Skip to content

Add a PHPStan configuration and run it as a GitHub Action #1847

Add a PHPStan configuration and run it as a GitHub Action

Add a PHPStan configuration and run it as a GitHub Action #1847

Triggered via pull request September 26, 2024 22:41
Status Failure
Total duration 46s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PHPStan: includes/Classifai/Admin/BulkActions.php#L216
Variable $action might not be defined.
PHPStan: includes/Classifai/Admin/BulkActions.php#L290
Variable $action might not be defined.
PHPStan: includes/Classifai/Admin/BulkActions.php#L597
Variable $feature_id might not be defined.
PHPStan: includes/Classifai/Admin/BulkActions.php#L654
Variable $action_text might not be defined.
PHPStan: includes/Classifai/Admin/DebugInfo.php#L63
Expected 2 @param tags, found 1.
PHPStan: includes/Classifai/Admin/templates/onboarding-footer.php#L16
Variable $args might not be defined.
PHPStan: includes/Classifai/Admin/templates/onboarding-header.php#L30
Variable $args might not be defined.
PHPStan: includes/Classifai/Command/ClassifaiCommand.php#L215
is_wp_error(array|Classifai\Providers\Watson\WP_Error) will always evaluate to false.
PHPStan: includes/Classifai/Command/RSSImporterCommand.php#L203
Constant MERCURY_PARSER_API_KEY not found.
PHPStan: includes/Classifai/Features/AudioTranscriptsGeneration.php#L56
Action callback returns string|WP_Error|null but should not return anything.