My Jetpack: Add "Expired" & "Expires soon" statuses to product cards #77478
tests.yml
on: pull_request
Determine tests matrix
9s
Storybook tests
2m 45s
Check plugin monorepo dep versions
39s
Static analysis
5m 1s
Matrix: run-tests
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.
|