Skip to content

My Jetpack: Add "Expired" & "Expires soon" statuses to product cards #77478

My Jetpack: Add "Expired" & "Expires soon" statuses to product cards

My Jetpack: Add "Expired" & "Expires soon" statuses to product cards #77478

Triggered via pull request October 18, 2024 05:22
Status Failure
Total duration 8m 40s
Artifacts

tests.yml

on: pull_request
Determine tests matrix
9s
Determine tests matrix
Storybook tests
2m 45s
Storybook tests
Check plugin monorepo dep versions
39s
Check plugin monorepo dep versions
Static analysis
5m 1s
Static analysis
Matrix: run-tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Static analysis: projects/packages/my-jetpack/src/products/class-product.php#L417
TypeError PhanTypeMismatchReturnProbablyReal Returning null of type null but get_paid_plan_expiration_status() is declared to return string (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
Static analysis: projects/packages/my-jetpack/src/products/class-product.php#L422
TypeError PhanTypeMismatchReturnProbablyReal Returning null of type null but get_paid_plan_expiration_status() is declared to return string (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
Static analysis: projects/packages/my-jetpack/src/products/class-product.php#L426
TypeError PhanTypeMismatchArgumentNullableInternal Argument 2 ($needle) is $product_slug of type ?string but \strpos() takes string (expected type to be non-nullable)
Static analysis: projects/packages/my-jetpack/src/products/class-product.php#L440
TypeError PhanTypeMismatchReturnProbablyReal Returning null of type null but get_paid_plan_expiration_status() is declared to return string (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
Static analysis: projects/packages/my-jetpack/src/products/class-videopress.php#L210
ParamError PhanParamSignatureMismatch Declaration of function get_paid_plan_expiration_status() : bool should be compatible with function get_paid_plan_expiration_status() : string defined in src/products/class-product.php:415
Static analysis: projects/packages/my-jetpack/src/products/class-videopress.php#L219
TypeError PhanTypeMismatchReturnProbablyReal Returning null of type null but get_paid_plan_expiration_status() is declared to return bool (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
Static analysis: projects/packages/my-jetpack/src/products/class-videopress.php#L230
TypeError PhanTypeMismatchReturn Returning Products::STATUS_EXPIRING_SOON of type 'expiring_soon' but get_paid_plan_expiration_status() is declared to return bool
Static analysis: projects/packages/my-jetpack/src/products/class-videopress.php#L233
TypeError PhanTypeMismatchReturn Returning Products::STATUS_EXPIRED of type 'expired' but get_paid_plan_expiration_status() is declared to return bool
Static analysis: projects/packages/my-jetpack/src/products/class-videopress.php#L239
TypeError PhanTypeMismatchReturnProbablyReal Returning null of type null but get_paid_plan_expiration_status() is declared to return bool (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
Static analysis
Process completed with exit code 1.