Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to support php8 and laravel 7/8/9/10 #16

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ Icon?
ehthumbs.db
Thumbs.db
*.mo
*.phpunit.result.cache
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defects":{"Laravel\\PricingPlans\\Tests\\Integration\\Models\\FeatureTest::testItCanCreateAFeature":8,"Laravel\\PricingPlans\\Tests\\Integration\\Models\\FeatureTest::testItCanCalculateResetTime":8,"Laravel\\PricingPlans\\Tests\\Integration\\Models\\PlanTest::testItCanCreateAPlanAndAttachFeatures":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanGetAllIntervalsWithTranslations":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#0":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#1":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#2":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#3":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#4":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#5":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#6":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#7":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#8":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#9":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#10":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#11":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriodWithEmptyStart":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItThrowExceptionOnInvalidInterval":8,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanValidateIntervalUnit":8},"times":{"Laravel\\PricingPlans\\Tests\\Integration\\Models\\FeatureTest::testItCanCreateAFeature":0.027,"Laravel\\PricingPlans\\Tests\\Integration\\Models\\FeatureTest::testItCanCalculateResetTime":0.008,"Laravel\\PricingPlans\\Tests\\Integration\\Models\\PlanTest::testItCanCreateAPlanAndAttachFeatures":0.013,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanGetAllIntervalsWithTranslations":0.007,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#0":0.007,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#1":0.007,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#2":0.007,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#3":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#4":0.011,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#5":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#6":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#7":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#8":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#9":0.007,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#10":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#11":0.009,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriodWithEmptyStart":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItThrowExceptionOnInvalidInterval":0.008,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanValidateIntervalUnit":0.006}}
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defects":{"Laravel\\PricingPlans\\Tests\\Integration\\Models\\FeatureTest::testItCanCreateAFeature":4,"Laravel\\PricingPlans\\Tests\\Integration\\Models\\FeatureTest::testItCanCalculateResetTime":4,"Laravel\\PricingPlans\\Tests\\Integration\\Models\\PlanTest::testItCanCreateAPlanAndAttachFeatures":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanGetAllIntervalsWithTranslations":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #0":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #1":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #2":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #3":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #4":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #5":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #6":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #7":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #8":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #9":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #10":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #11":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriodWithEmptyStart":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItThrowExceptionOnInvalidInterval":4,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanValidateIntervalUnit":4},"times":{"Laravel\\PricingPlans\\Tests\\Integration\\Models\\FeatureTest::testItCanCreateAFeature":0.047,"Laravel\\PricingPlans\\Tests\\Integration\\Models\\FeatureTest::testItCanCalculateResetTime":0.013,"Laravel\\PricingPlans\\Tests\\Integration\\Models\\PlanTest::testItCanCreateAPlanAndAttachFeatures":0.022,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanGetAllIntervalsWithTranslations":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #0":0.017,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #1":0.019,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #2":0.016,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #3":0.017,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #4":0.017,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #5":0.018,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #6":0.016,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #7":0.017,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #8":0.022,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #9":0.017,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #10":0.017,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod with data set #11":0.016,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriodWithEmptyStart":0.005,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItThrowExceptionOnInvalidInterval":0.008,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanValidateIntervalUnit":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#0":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#1":0.005,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#2":0.005,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#3":0.005,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#4":0.005,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#5":0.005,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#6":0.005,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#7":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#8":0.006,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#9":0.005,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#10":0.005,"Laravel\\PricingPlans\\Tests\\Unit\\PeriodTest::testItCanCalculateAPeriod#11":0.005}}
106 changes: 19 additions & 87 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,98 +27,30 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Nothing


## [0.3.4] - 2020-08-25

## [0.3.3] - 2018-08-09

### Fixed
- Fixed #10: Missing `plan_id` when create new subscription. Thank @Georde ([7af238e](https://github.com/oanhnn/laravel-pricing-plans/commit/7af238ebc0368e2170643385ece0e1aa9903bcb4))



## [0.3.2] - 2018-08-07

### Fixed
- Fixed #3 : Incorrect `belongTo` parameters in `BelongsToPlanModel` Trait. ([32ee324](https://github.com/oanhnn/laravel-pricing-plans/commit/32ee3243907feffbe80f3ae0a2f226ce3ca1f5df))
- Fixed #8 : Missing `findByCode` method. ([32ee324](https://github.com/oanhnn/laravel-pricing-plans/commit/32ee3243907feffbe80f3ae0a2f226ce3ca1f5df))
- Fixed: `SubscriptionAbility::consumed()` method return incorrect value. ([32ee324](https://github.com/oanhnn/laravel-pricing-plans/commit/32ee3243907feffbe80f3ae0a2f226ce3ca1f5df))



## [0.3.1] - 2018-07-20

### Fixed
- Fixed: `Subscribable` trait with `Subscriber` interface. ([304f7b6](https://github.com/oanhnn/laravel-pricing-plans/tree/304f7b60db149b52e76f847a7913349f113bb602))
- Fixed: TravisCI send coverage. ([b329094](https://github.com/oanhnn/laravel-pricing-plans/commit/b32909481d2116fc51793567f78acaec20cf9f98))



## [0.3.0] - 2018-05-27

### Added
- Add local scope `code` for `Plan` and `Feature` model

### Fixed
- Fixed: Missing `value` and `node` attributes of `$plan->features->pivot`



## [0.2.3] - 2018-03-27

### Fixed
- Fixed: incorrect relationship in Feature and Plan models. ([51ff5f3](https://github.com/oanhnn/laravel-pricing-plans/commit/51ff5f3644a318b999cc47491baa5d7c9d36d7ad))
Thank @cimon77
## [0.4.0] - 2021-01-19
### Support for Laravel 7 and Symphony 5
- Added support for laravel 7.* and Symphony 5

## [0.5.0] - 2021-01-19
### Support for Laravel 8
- Added support for laravel 8.*

## [0.5.1] - 2021-05-11
### Support for PHP 8
- Added support for php 8.*

## [0.2.2] - 2018-03-27
## [0.5.2] - 2023-02-15
### Support for PHP 8.1 and Laravel 9.*
- Added support for php 8.1 and Laravel 9

### Changed
- Update TravisCI, remove allow failure on Laravel 5.6.* ([d7f934f](https://github.com/oanhnn/laravel-pricing-plans/commit/d7f934f49637460d9978fac1d803b6fae095e6d4))

### Fixed
- Fixed: Incorrect relationship in Feature model. ([7b26b76](https://github.com/oanhnn/laravel-pricing-plans/commit/7b26b7619a34af2e9a81921d50e343f552f081c4))
Thank @cimon77
## [0.6.1] - 2024-02-16
### Support for PHP 8.2 and Laravel 10.*
- Added support for php 8.2 and Laravel 10

## [0.6.3] - 2023-02-15
### Fixed date casting issues for laravel 10
- Fixed date casting issues for laravel 10


## [0.2.1] - 2018-02-26
### Added
- Add link to origin repository in README ([afe05ce](https://github.com/oanhnn/laravel-pricing-plans/commit/afe05cee6fd1c0b1e9f5fbfe672f48dd2cbb4967))

### Changed
- Changed CHANGELOG format ([afe05ce](https://github.com/oanhnn/laravel-pricing-plans/commit/afe05cee6fd1c0b1e9f5fbfe672f48dd2cbb4967))
- Update LICENSE ([afe05ce](https://github.com/oanhnn/laravel-pricing-plans/commit/afe05cee6fd1c0b1e9f5fbfe672f48dd2cbb4967))

### Fixed
- Fixed: TravisCI build ([358dcee](https://github.com/oanhnn/laravel-pricing-plans/commit/358dcee6afbc99b75da967fcd25f4656d3dfa16b))



## [0.2.0] - 2018-02-22
### Added
- Laravel 5.6 Compatibility ([e754ae0](https://github.com/oanhnn/laravel-pricing-plans/commit/e754ae01a6c086d1c5b75074b1376a057d616b35))
- Added matrix test with TravisCI ([e754ae0](https://github.com/oanhnn/laravel-pricing-plans/commit/e754ae01a6c086d1c5b75074b1376a057d616b35))

### Changed
- Added `code` column to `plans` and `features` tables ([dce3518](https://github.com/oanhnn/laravel-pricing-plans/commit/dce351893d386d8cd8207608c8f92820767c8ac8))



## 0.1.0 - 2018-01-09
### Added
- Initial repository and package
- Added migration file
- Added config file
- Added some tests



[Unreleased]: https://github.com/oanhnn/laravel-pricing-plans/compare/v0.3.3...develop
[0.3.3]: https://github.com/oanhnn/laravel-pricing-plans/compare/v0.3.2...v0.3.3
[0.3.2]: https://github.com/oanhnn/laravel-pricing-plans/compare/v0.3.1...v0.3.2
[0.3.1]: https://github.com/oanhnn/laravel-pricing-plans/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/oanhnn/laravel-pricing-plans/compare/v0.2.3...v0.3.0
[0.2.3]: https://github.com/oanhnn/laravel-pricing-plans/compare/v0.2.2...v0.2.3
[0.2.2]: https://github.com/oanhnn/laravel-pricing-plans/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/oanhnn/laravel-pricing-plans/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/oanhnn/laravel-pricing-plans/compare/v0.1.0...v0.2.0
Loading