Skip to content

Protect: Add WAF StatCards #72341

Protect: Add WAF StatCards

Protect: Add WAF StatCards #72341

Triggered via pull request July 17, 2024 21:15
Status Failure
Total duration 8m 53s
Artifacts 7

tests.yml

on: pull_request
Determine tests matrix
7s
Determine tests matrix
Storybook tests
3m 1s
Storybook tests
Check plugin monorepo dep versions
44s
Check plugin monorepo dep versions
Static analysis
4m 54s
Static analysis
Matrix: run-tests
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Static analysis: projects/packages/waf/src/class-waf-blocklog-manager.php#L47
UndefError PhanUndeclaredConstant Reference to undeclared constant \DB_HOST. This will cause a thrown Error in php 8.0+.
Static analysis: projects/packages/waf/src/class-waf-blocklog-manager.php#L47
UndefError PhanUndeclaredConstant Reference to undeclared constant \DB_NAME. This will cause a thrown Error in php 8.0+.
Static analysis: projects/packages/waf/src/class-waf-blocklog-manager.php#L47
UndefError PhanUndeclaredConstant Reference to undeclared constant \DB_PASSWORD. This will cause a thrown Error in php 8.0+.
Static analysis: projects/packages/waf/src/class-waf-blocklog-manager.php#L47
UndefError PhanUndeclaredConstant Reference to undeclared constant \DB_USER. This will cause a thrown Error in php 8.0+. Suggestion: Did you mean \SI_USER
Static analysis: projects/packages/waf/src/class-waf-blocklog-manager.php#L182
Plugin PhanPluginDuplicateConditionalNullCoalescing "isset(X) ? X : Y" can usually be simplified to "X ?? Y" in PHP 7. The duplicated expression X was $stats[$today]
Static analysis: projects/packages/waf/src/class-waf-runtime.php#L274
TypeError PhanTypeMismatchArgument Argument 1 ($rule_id) is $rule_id of type string but \Automattic\Jetpack\Waf\Waf_Blocklog_Manager::write_blocklog() takes int defined at src/class-waf-blocklog-manager.php:212
Static analysis: projects/packages/waf/tests/php/unit/test-waf-blocklog-manager.php#L31
TypeError PhanImpossibleTypeComparison Impossible attempt to check if strpos($file_content, '{"rule_id":1337,"reason":"test block"') of type false|int is identical to true of type true
Static analysis
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
PHP tests - PHP 7.4 WP latest Expired
4.48 KB
PHP tests - PHP 8.0 WP latest Expired
4.48 KB
PHP tests - PHP 8.1 WP latest Expired
4.47 KB
PHP tests - PHP 8.2 WP latest Expired
4.49 KB
PHP tests - PHP 8.2 WP previous Expired
4.48 KB
PHP tests - PHP 8.2 WP trunk Expired
4.49 KB
PHP tests - PHP 8.3 WP latest Expired
4.48 KB