Skip to content

Add PHP 8.0 named parameters support #397

Add PHP 8.0 named parameters support

Add PHP 8.0 named parameters support #397

Triggered via pull request January 16, 2026 01:48
Status Failure
Total duration 38s
Artifacts

ci.yml

on: pull_request
php-compatibility
8s
php-compatibility
php-static-analysis
12s
php-static-analysis
Matrix: php-tests
Fit to window
Zoom out
Zoom in

Annotations

6 errors
php-static-analysis
Process completed with exit code 1.
php-static-analysis: tests/Integration/WP_MockTest.php#L362
Named arguments are supported only on PHP 8.0 and later.
php-static-analysis: php/WP_Mock/Functions.php#L299
Method WP_Mock\Functions::createFunction() has parameter $functionArgs with no value type specified in iterable type array.
php-static-analysis: php/WP_Mock/Functions.php#L283
PHPDoc tag @param for parameter $functionArgs with type string is incompatible with native type array.
php-static-analysis: php/WP_Mock/Functions.php#L283
Method WP_Mock\Functions::generateFunction() has parameter $functionArgs with no value type specified in iterable type array.
php-tests (7.4, ubuntu-24.04)
Process completed with exit code 255.