Protect: Add WAF StatCards #72334
tests.yml
on: pull_request
Determine tests matrix
8s
Storybook tests
2m 59s
Check plugin monorepo dep versions
38s
Static analysis
4m 48s
Matrix: run-tests
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.46 KB |
|
PHP tests - PHP 8.0 WP latest
Expired
|
4.46 KB |
|
PHP tests - PHP 8.1 WP latest
Expired
|
4.48 KB |
|
PHP tests - PHP 8.2 WP latest
Expired
|
4.46 KB |
|
PHP tests - PHP 8.2 WP previous
Expired
|
4.48 KB |
|
PHP tests - PHP 8.2 WP trunk
Expired
|
4.5 KB |
|
PHP tests - PHP 8.3 WP latest
Expired
|
4.48 KB |
|