Search: Add option caching for Instant Search configurator #76328
Triggered via pull request
September 18, 2024 23:51
Status
Failure
Total duration
8m 20s
Artifacts
–
tests.yml
on: pull_request
Determine tests matrix
6s
Storybook tests
3m 11s
Check plugin monorepo dep versions
39s
Static analysis
4m 51s
Matrix: run-tests
Annotations
6 errors
Static analysis:
projects/packages/search/src/class-helper.php#L832
TypeError PhanTypeMismatchArgumentInternal Argument 2 ($string) is Options::get_cached_option(($prefix . 'excluded_post_types'), '') of type bool but \explode() takes string
|
Static analysis:
projects/packages/search/src/class-options.php#L104
TypeError PhanTypeMismatchReturn Returning ((Package::VERSION . '-') . $option_name) of type string but get_cached_option_key() is declared to return bool
|
Static analysis:
projects/packages/search/src/class-options.php#L119
TypeError PhanTypeMismatchArgument Argument 1 ($key) is $cache_key of type bool but \wp_cache_get() takes int|string defined at /home/runner/work/jetpack/jetpack/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php:101202
|
Static analysis:
projects/packages/search/src/class-options.php#L122
TypeError PhanTypeMismatchArgument Argument 1 ($key) is $cache_key of type bool but \wp_cache_set() takes int|string defined at /home/runner/work/jetpack/jetpack/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php:101165
|
Static analysis:
projects/packages/search/src/class-options.php#L139
TypeError PhanTypeMismatchArgument Argument 1 ($key) is $option_key of type bool but \wp_cache_set() takes int|string defined at /home/runner/work/jetpack/jetpack/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php:101165
|
Static analysis
Process completed with exit code 1.
|