Skip to content

Fix PHP 7.2 parsing bug #577

Fix PHP 7.2 parsing bug

Fix PHP 7.2 parsing bug #577

Triggered via pull request July 23, 2025 18:29
Status Failure
Total duration 1m 57s
Artifacts

lint.yml

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

Annotations

7 errors
Plugin Check
Process completed with exit code 1.
WordPress.WP.AlternativeFunctions.rand_mt_rand: includes/class-metrics.php#L149
mt_rand() is discouraged. Use the far less predictable wp_rand() instead.
Squiz.PHP.Heredoc.NotAllowed: includes/class-plugin.php#L854
Use of heredoc and nowdoc syntax ("<<<") is not allowed; use standard strings or inline HTML instead
Squiz.PHP.Heredoc.NotAllowed: includes/class-plugin.php#L830
Use of heredoc and nowdoc syntax ("<<<") is not allowed; use standard strings or inline HTML instead
WordPress.Security.EscapeOutput.OutputNotEscaped: includes/object-cache.php#L3038
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.
Squiz.PHP.Heredoc.NotAllowed: includes/object-cache.php#L1926
Use of heredoc and nowdoc syntax ("<<<") is not allowed; use standard strings or inline HTML instead
Squiz.PHP.Heredoc.NotAllowed: includes/object-cache.php#L1880
Use of heredoc and nowdoc syntax ("<<<") is not allowed; use standard strings or inline HTML instead