Skip to content

2.x psr log and php multi compat #36

2.x psr log and php multi compat

2.x psr log and php multi compat #36

Triggered via pull request November 28, 2023 18:17
Status Failure
Total duration 44s
Artifacts

php-static-analysis.yml

on: pull_request
coding-standards-analysis-php  /  coding-standards-php
16s
coding-standards-analysis-php / coding-standards-php
Matrix: lint-php / lint-php
Matrix: static-code-analysis-php
Fit to window
Zoom out
Zoom in

Annotations

29 errors and 16 warnings
lint-php / lint-php (7.3): tests/src/TestLogger/TestLoggerV2V3.php#L27
Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) in ./tests/src/TestLogger/TestLoggerV2V3.php on line 27
lint-php / lint-php (7.3)
Process completed with exit code 1.
lint-php / lint-php (8.2)
The job was canceled because "_7_3" failed.
lint-php / lint-php (8.0)
The job was canceled because "_7_3" failed.
static-code-analysis-php (7.2) / static-analysis-php
Your requirements could not be resolved to an installable set of packages. Problem 1 - vimeo/psalm[5.15.0, ..., 5.16.0] require php ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (7.2.34) does not satisfy that requirement. - Root composer.json requires vimeo/psalm ^5.15 -> satisfiable by vimeo/psalm[5.15.0, 5.16.0].
static-code-analysis-php (7.2) / static-analysis-php
Process completed with exit code 2.
lint-php / lint-php (7.4)
The job was canceled because "_7_3" failed.
lint-php / lint-php (7.4)
The operation was canceled.
static-code-analysis-php (7.3) / static-analysis-php
Your requirements could not be resolved to an installable set of packages. Problem 1 - vimeo/psalm[5.15.0, ..., 5.16.0] require php ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (7.3.33) does not satisfy that requirement. - Root composer.json requires vimeo/psalm ^5.15 -> satisfiable by vimeo/psalm[5.15.0, 5.16.0].
static-code-analysis-php (7.3) / static-analysis-php
Process completed with exit code 2.
lint-php / lint-php (7.2)
The job was canceled because "_7_3" failed.
lint-php / lint-php (7.2): tests/src/TestLogger/TestLoggerV2V3.php#L27
Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) in ./tests/src/TestLogger/TestLoggerV2V3.php on line 27
lint-php / lint-php (7.2)
Process completed with exit code 1.
lint-php / lint-php (8.1)
The job was canceled because "_7_3" failed.
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/TestLoggerV2V3.php#L27
Typed properties are not supported in PHP 7.3 or earlier
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/TestLoggerV2V3.php#L28
Typed properties are not supported in PHP 7.3 or earlier
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/TestLoggerV2V3.php#L120
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$method'.
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/AbstractLoggerV1.php#L33
Short array syntax must be used to define arrays
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/AbstractLoggerV1.php#L49
Short array syntax must be used to define arrays
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/AbstractLoggerV1.php#L64
Short array syntax must be used to define arrays
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/AbstractLoggerV1.php#L78
Short array syntax must be used to define arrays
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/AbstractLoggerV1.php#L94
Short array syntax must be used to define arrays
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/AbstractLoggerV1.php#L107
Short array syntax must be used to define arrays
coding-standards-analysis-php / coding-standards-php
Process completed with exit code 2.
static-code-analysis-php (8.0) / static-analysis-php
The operation was canceled.
static-code-analysis-php (8.1) / static-analysis-php
The operation was canceled.
static-code-analysis-php (8.2) / static-analysis-php
The operation was canceled.
static-code-analysis-php (7.4) / static-analysis-php
The operation was canceled.
lint-php / lint-php (7.3)
The PHP_MATRIX input is deprecated and will be removed in the future. Please create a matrix in your caller workflow and pass it to the PHP_VERSION input.
lint-php / lint-php (8.2)
The PHP_MATRIX input is deprecated and will be removed in the future. Please create a matrix in your caller workflow and pass it to the PHP_VERSION input.
lint-php / lint-php (8.0)
The PHP_MATRIX input is deprecated and will be removed in the future. Please create a matrix in your caller workflow and pass it to the PHP_VERSION input.
lint-php / lint-php (7.4)
The PHP_MATRIX input is deprecated and will be removed in the future. Please create a matrix in your caller workflow and pass it to the PHP_VERSION input.
lint-php / lint-php (7.2)
The PHP_MATRIX input is deprecated and will be removed in the future. Please create a matrix in your caller workflow and pass it to the PHP_VERSION input.
lint-php / lint-php (8.1)
The PHP_MATRIX input is deprecated and will be removed in the future. Please create a matrix in your caller workflow and pass it to the PHP_VERSION input.
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/TestLoggerV2V3.php#L83
Line 83 exceeds 100 characters; contains 105 characters.
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/TestLoggerV2V3.php#L93
Line 93 exceeds 100 characters; contains 105 characters.
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/TestLoggerV2V3.php#L120
Line 120 exceeds 100 characters; contains 180 characters.
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/TestLoggerV2V3.php#L120
Silencing errors is strongly discouraged. Use proper error checking instead. Found: @trigger_error(sprintf('Since psr/log-util 1.1: Method "%s" is deprecated and should not be called. Use method "%s" instead.'...
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/TestLoggerV2V3.php#L122
Line 122 exceeds 100 characters; contains 121 characters.
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/TestLoggerV2V3.php#L123
Line 123 exceeds 100 characters; contains 102 characters.
coding-standards-analysis-php / coding-standards-php: tests/src/TestLogger/TestLoggerV2V3.php#L127
call_user_func and call_user_func_array are not allowed