Skip to content

Update szepeviktor/phpstan-wordpress requirement from ^1.1 to ^2.0 #4

Update szepeviktor/phpstan-wordpress requirement from ^1.1 to ^2.0

Update szepeviktor/phpstan-wordpress requirement from ^1.1 to ^2.0 #4

Triggered via pull request December 9, 2024 12:36
Status Failure
Total duration 1m 21s
Artifacts

all-pr-tests.yml

on: pull_request
Matrix: pr-tests
All PR checks passed
0s
All PR checks passed
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 1 warning
PR Tests PHP 8.1 WordPress latest: src/features/class-full-page-cache-404.php#L75
Method Alley\WP\WP_404_Caching\Features\Full_Page_Cache_404::get_cache_time() should return int but returns mixed.
PR Tests PHP 8.1 WordPress latest: src/features/class-full-page-cache-404.php#L84
Method Alley\WP\WP_404_Caching\Features\Full_Page_Cache_404::get_stale_cache_time() should return int but returns mixed.
PR Tests PHP 8.1 WordPress latest: src/features/class-full-page-cache-404.php#L93
Method Alley\WP\WP_404_Caching\Features\Full_Page_Cache_404::caching_enabled() should return bool but returns mixed.
PR Tests PHP 8.1 WordPress latest: src/features/class-full-page-cache-404.php#L230
Cannot call method is_404() on mixed.
PR Tests PHP 8.1 WordPress latest: src/features/class-full-page-cache-404.php#L252
Cannot call method is_404() on mixed.
PR Tests PHP 8.1 WordPress latest: src/features/class-full-page-cache-404.php#L311
Parameter #1 $str of function sanitize_text_field expects string, mixed given.
PR Tests PHP 8.1 WordPress latest: src/features/class-full-page-cache-404.php#L314
Parameter #1 $search of function str_replace expects array<string>|string, array<int, string|false> given.
PR Tests PHP 8.1 WordPress latest: src/features/class-full-page-cache-404.php#L320
Parameter #2 $replace of function str_replace expects array<string>|string, array<int, string|false> given.
PR Tests PHP 8.1 WordPress latest
Process completed with exit code 1.
PR Tests PHP 8.2 WordPress latest
The job was canceled because "_8_1_latest" failed.
PR Tests PHP 8.3 WordPress latest
The job was canceled because "_8_1_latest" failed.
All PR checks passed
Process completed with exit code 1.
All PR checks passed
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636