array_filter
removes 0
as the quantity value to addPrice
function
#1237
Labels
array_filter
removes 0
as the quantity value to addPrice
function
#1237
Description:
I noticed that when specifying
0
as the quantity for the second argument ofaddPrice
, it is filtered out in the final result. Setting0
as the quantity is committed to the database but not to Stripe, instead the default value of1
is used in Stripe.cashier-stripe/src/Subscription.php
Line 840 in 137452f
I understand that this is the default behaviour of
array_filter
as0
is equivalent tofalse
.The text was updated successfully, but these errors were encountered: