GIF Block: Replace source with Tumblr GIF Search #77766
tests.yml
on: pull_request
Determine tests matrix
8s
Storybook tests
2m 44s
Check plugin monorepo dep versions
42s
Static analysis
5m 27s
Matrix: run-tests
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.
|