Skip to content

Commit b9a92da

Browse files
authored
Merge pull request #424 from bavix/develop
Adding support for laravel 9
2 parents 59832cf + c50ed06 commit b9a92da

File tree

68 files changed

+273
-550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+273
-550
lines changed

.github/workflows/phpunits.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
php-versions: [7.4, 8.0, 8.1]
21+
php-versions: [8.0, 8.1]
2222
databases: [testing, pgsql, mysql, mariadb]
2323
caches: [array, redis, memcached]
2424

.github/workflows/rector.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup PHP
1818
uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: 7.4
20+
php-version: 8.0
2121
env:
2222
runner: self-hosted
2323

.travis.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ laravel-wallet - Easy work with virtual wallet.
2121
* **Vendor**: bavix
2222
* **Package**: laravel-wallet
2323
* **Version**: [![Latest Stable Version](https://poser.pugx.org/bavix/laravel-wallet/v)](https://packagist.org/packages/bavix/laravel-wallet)
24-
* **PHP Version**: 7.4+
25-
* **Laravel Version**: `6.x`, `7.x`, `8.x`
24+
* **PHP Version**: 8.0+
25+
* **Laravel Version**: `9.x`
2626
* **[Composer](https://getcomposer.org/):** `composer require bavix/laravel-wallet`
2727

2828
### Upgrade Guide

changelog.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [8.0.0] - 2022-02-08
10+
### Added
11+
- Add support laravel ^9.0
12+
- Added support for owner string identifiers #423 @adesege
13+
14+
### Removed
15+
- Removed php 7.4 support
16+
917
## [7.3.0] - 2021-12-10
1018
### Added
1119
- Credit Limits
@@ -760,7 +768,8 @@ The operation is now executed in the transaction and updates the new `refund` fi
760768
- Exceptions: AmountInvalid, BalanceIsEmpty.
761769
- Models: Transfer, Transaction.
762770

763-
[Unreleased]: https://github.com/bavix/laravel-wallet/compare/7.3.0...develop
771+
[Unreleased]: https://github.com/bavix/laravel-wallet/compare/8.0.0...develop
772+
[8.0.0]: https://github.com/bavix/laravel-wallet/compare/7.3.0...8.0.0
764773
[7.3.0]: https://github.com/bavix/laravel-wallet/compare/7.2.0...7.3.0
765774
[7.2.0]: https://github.com/bavix/laravel-wallet/compare/7.1.0...7.2.0
766775
[7.1.0]: https://github.com/bavix/laravel-wallet/compare/7.0.0...7.1.0

composer.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,27 @@
2323
],
2424
"require": {
2525
"ext-pdo": "*",
26-
"php": "^7.4|^8.0",
27-
"illuminate/database": "^6.0|^7.0|^8.0",
28-
"illuminate/events": "^6.0|^7.0|^8.0",
26+
"php": "^8.0",
27+
"illuminate/database": "^9.0",
28+
"illuminate/events": "^9.0",
2929
"doctrine/dbal": "^2.8|^3.0",
3030
"ramsey/uuid": "^3.0|^4.0",
3131
"brick/math": "~0.8",
3232
"ext-json": "*"
3333
},
3434
"require-dev": {
3535
"brianium/paratest": "^6.4",
36-
"cknow/laravel-money": "^6.1",
36+
"cknow/laravel-money": "dev-master",
3737
"ergebnis/phpstan-rules": "^1.0",
38-
"infection/infection": "~0.25",
38+
"infection/infection": "~0.26",
3939
"laravel/cashier": "^13.6",
40-
"nunomaduro/collision": "^5.10",
41-
"orchestra/testbench": "^6.23",
42-
"phpstan/phpstan": "^1.2",
40+
"nunomaduro/collision": "^6.0",
41+
"orchestra/testbench": "^7.0",
42+
"phpstan/phpstan": "^1.3",
4343
"phpunit/phpunit": "^9.5",
44-
"psalm/plugin-laravel": "^1.5",
4544
"rector/rector": "^0.12",
4645
"symplify/easy-coding-standard": "^10.0",
47-
"vimeo/psalm": "^4.15"
46+
"vimeo/psalm": "^4.18"
4847
},
4948
"suggest": {
5049
"bavix/laravel-wallet-swap": "Addition to the laravel-wallet library for quick setting of exchange rates",

infection.json.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
},
88
"logs": {
99
"text": "build/infection.log",
10-
"badge": {
11-
"branch": "master"
10+
"stryker": {
11+
"badge": "master"
1212
}
1313
},
1414
"mutators": {

phpstan-baseline.neon

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\:\\:where\\(\\)\\.$#"
5+
count: 1
6+
path: src/Models/Wallet.php
7+
8+
-
9+
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\MorphMany\\:\\:where\\(\\)\\.$#"
10+
count: 1
11+
path: src/Services/PurchaseService.php
12+

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
14
parameters:
25
checkMissingIterableValueType: false
36
fileExtensions:

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
<projectFiles>
1010
<directory name="src"/>
1111
</projectFiles>
12-
<plugins><pluginClass class="Psalm\LaravelPlugin\Plugin"/></plugins></psalm>
12+
</psalm>

0 commit comments

Comments
 (0)