Skip to content

GIF Block: Replace source with Tumblr GIF Search #77766

GIF Block: Replace source with Tumblr GIF Search

GIF Block: Replace source with Tumblr GIF Search #77766

Triggered via pull request October 24, 2024 17:22
Status Failure
Total duration 6m 20s
Artifacts

tests.yml

on: pull_request
Determine tests matrix
8s
Determine tests matrix
Storybook tests
2m 44s
Storybook tests
Check plugin monorepo dep versions
42s
Check plugin monorepo dep versions
Static analysis
5m 27s
Static analysis
Matrix: run-tests
Fit to window
Zoom out
Zoom in

Annotations

7 errors
Static analysis: projects/plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-tumblr-gifs.php#L180
UndefError PhanUndeclaredConstant Reference to undeclared constant \TUMBLR_API_KEY. This will cause a thrown Error in php 8.0+.
Static analysis: projects/plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-tumblr-gifs.php#L186
TypeError PhanTypeMismatchReturnProbablyReal Returning new WP_Error('tumblr_api_error', 'Error connecting to Tumblr API', ['status'=>500]) of type \WP_Error but proxy_tumblr_request() is declared to return array (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
Static analysis: projects/plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-tumblr-gifs.php#L230
Plugin PhanPluginDuplicateConditionalNullCoalescing "isset(X) ? X : Y" can usually be simplified to "X ?? Y" in PHP 7. The duplicated expression X was $response_body['code']
Static analysis: projects/plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-tumblr-gifs.php#L231
Plugin PhanPluginDuplicateConditionalNullCoalescing "isset(X) ? X : Y" can usually be simplified to "X ?? Y" in PHP 7. The duplicated expression X was $response_body['message']
Static analysis: projects/plugins/jetpack/extensions/blocks/gif/gif.php#L50
TypeError PhanTypeMismatchArgumentNullable Argument 1 ($url) is $giphy_url of type ?non-empty-string|?string but \esc_url() takes string defined at /home/runner/work/jetpack/jetpack/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php:106772 (expected type to be non-nullable)
Static analysis: projects/plugins/jetpack/extensions/blocks/gif/gif.php#L70
TypeError PhanTypeMismatchArgumentNullable Argument 1 ($url) is $gif_url of type ?non-empty-string|?string but \esc_url() takes string defined at /home/runner/work/jetpack/jetpack/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php:106772 (expected type to be non-nullable)
Static analysis
Process completed with exit code 1.