bpuig / laravel-subby

Laravel Plan and Subscriptions manager.
https://bpuig.github.io/laravel-subby
MIT License
102 stars 42 forks source link

`getFeatureRemainings()` returns error if queried against a feature with value of true/false #93

Closed boryn closed 3 years ago

boryn commented 3 years ago

For example $subscription->getFeatureRemainings('analytics') will error with "Unsupported operand types: string - int". I think in this case we could silently return null (helpful when we are getting user's features details "in bulk")?

bpuig commented 3 years ago

Fixed in #94 , will be in next patch version for v4 and merged also to v5 development.