Skip to content

Improve PHP 8.4 compatibility #11644

Improve PHP 8.4 compatibility

Improve PHP 8.4 compatibility #11644

Triggered via pull request October 18, 2024 12:03
@swissspidyswissspidy
synchronize #7897
fix/php84
Status Cancelled
Total duration 4m 12s
Artifacts

build-test-measure.yml

on: pull_request
Pre run
3s
Pre run
Matrix: build-zip
Matrix: E2E test: JS
Matrix: feature-test-php
Matrix: unit-test-php
Upload plugin ZIPs to Google Cloud Storage
0s
Upload plugin ZIPs to Google Cloud Storage
Comment on PR with links to plugin ZIPs
0s
Comment on PR with links to plugin ZIPs
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 2 notices
Static Analysis: PHP: includes/admin/class-amp-post-meta-box.php#L172
Path in require() "/home/runner/work/amp-wp/amp-wp/assets/js/amp-post-meta-box.asset.php" is not a file or it does not exist.
Static Analysis: PHP: includes/admin/class-amp-post-meta-box.php#L243
Path in require() "/home/runner/work/amp-wp/amp-wp/assets/js/amp-block-editor.asset.php" is not a file or it does not exist.
Static Analysis: PHP: includes/admin/class-amp-template-customizer.php#L321
Path in require() "/home/runner/work/amp-wp/amp-wp/assets/js/amp-customize-controls.asset.php" is not a file or it does not exist.
Static Analysis: PHP: includes/admin/class-amp-template-customizer.php#L573
Path in require() "/home/runner/work/amp-wp/amp-wp/assets/js/amp-customize-controls-legacy.asset.php" is not a file or it does not exist.
Static Analysis: PHP: includes/admin/class-amp-template-customizer.php#L635
Path in require() "/home/runner/work/amp-wp/amp-wp/assets/js/amp-customize-preview-legacy.asset.php" is not a file or it does not exist.
Static Analysis: PHP: includes/embeds/class-amp-youtube-embed-handler.php#L278
Call to function is_array() with array will always evaluate to true.
Static Analysis: PHP: includes/embeds/class-amp-youtube-embed-handler.php#L479
Call to function is_array() with array{0?: string, minutes?: ''|numeric-string, 1?: ''|numeric-string, seconds?: numeric-string, 2?: numeric-string} will always evaluate to true.
Static Analysis: PHP: includes/settings/class-amp-customizer-design-settings.php#L233
Path in require() "/home/runner/work/amp-wp/amp-wp/assets/js/amp-customizer-design-preview-legacy.asset.php" is not a file or it does not exist.
Static Analysis: PHP: includes/utils/class-amp-dom-utils.php#L376
Offset 'event' on array{0: list<string>, 1: list<non-falsy-string>, event: list<non-empty-string>, 2: list<non-empty-string>, actions: list<non-empty-string>, 3: list<non-empty-string>} in isset() always exists and is not nullable.
Static Analysis: PHP: includes/utils/class-amp-dom-utils.php#L394
Offset 'action' on array{0: list<string>, action: list<non-empty-string>, 1: list<non-empty-string>} in isset() always exists and is not nullable.
Unit test: PHP 8.2, WP trunk
Canceling since a higher priority waiting request for 'Build, test & measure-fix/php84' exists
E2E test: JS (2, 2)
Canceling since a higher priority waiting request for 'Build, test & measure-fix/php84' exists
E2E test: JS (2, 2)
The operation was canceled.
Unit test (with coverage): PHP 8.0, WP latest
Canceling since a higher priority waiting request for 'Build, test & measure-fix/php84' exists
Unit test (with coverage): PHP 8.0, WP latest
The operation was canceled.
Unit test: PHP 8.4, WP trunk
Canceling since a higher priority waiting request for 'Build, test & measure-fix/php84' exists
Unit test: PHP 8.4, WP trunk
The operation was canceled.
Unit test: PHP 8.3, WP trunk
Canceling since a higher priority waiting request for 'Build, test & measure-fix/php84' exists
Unit test: PHP 8.3, WP trunk
The operation was canceled.
E2E test: JS (1, 2)
Canceling since a higher priority waiting request for 'Build, test & measure-fix/php84' exists
E2E test: JS (1, 2)
The operation was canceled.
E2E test: JS (2, 2)
Using Chromium from /home/runner/.cache/puppeteer/chrome/linux-126.0.6478.126/chrome-linux64/chrome
E2E test: JS (1, 2)
Using Chromium from /home/runner/.cache/puppeteer/chrome/linux-126.0.6478.126/chrome-linux64/chrome