Skip to content

Commit 38fe823

Browse files
authored
Merge pull request #29 from MusahMusah/bump/laravel-12
Laravel 12
2 parents b599528 + a77a8da commit 38fe823

File tree

12 files changed

+58
-82
lines changed

12 files changed

+58
-82
lines changed

.github/workflows/run-tests.yml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,48 @@ on:
99
jobs:
1010
test:
1111
runs-on: ${{ matrix.os }}
12+
13+
timeout-minutes: 5
14+
1215
strategy:
1316
fail-fast: true
1417
matrix:
1518
os: [ubuntu-latest]
16-
php: [8.3, 8.2, 8.1, 8.0]
17-
laravel: [11.*,10.*, 9.*, 8.*]
19+
php: [8.4, 8.3, 8.2, 8.1, 8.0]
20+
laravel: [12.*, 11.*,10.*, 9.*, 8.*]
1821
stability: [prefer-lowest, prefer-stable]
1922
include:
20-
- laravel: 11.*
21-
testbench: ^9.0
22-
carbon: ^2.63
23-
- laravel: 10.*
24-
testbench: ^8.0
25-
carbon: ^2.63
26-
- laravel: 9.*
27-
testbench: ^7.0
28-
carbon: ^2.63
2923
- laravel: 8.*
3024
testbench: ^6.23
31-
carbon: ^2.63
25+
- laravel: 9.*
26+
testbench: ^7.0
27+
- laravel: 10.*
28+
testbench: ^8.0
29+
- laravel: 11.*
30+
testbench: ^9.0
31+
- laravel: 12.*
32+
testbench: 10.*
3233
exclude:
34+
- laravel: 8.*
35+
php: 8.3
36+
- laravel: 8.*
37+
php: 8.4
38+
- laravel: 9.*
39+
php: 8.4
3340
- laravel: 10.*
3441
php: 8.0
42+
- laravel: 10.*
43+
php: 8.4
3544
- laravel: 11.*
3645
php: 8.0
3746
- laravel: 11.*
3847
php: 8.1
39-
- laravel: 8.*
40-
php: 8.3
48+
- laravel: 11.*
49+
php: 8.4
50+
- laravel: 12.*
51+
php: 8.0
52+
- laravel: 12.*
53+
php: 8.1
4154

4255
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
4356

@@ -59,7 +72,7 @@ jobs:
5972
6073
- name: Install dependencies
6174
run: |
62-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
75+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:>=2.72" --dev --no-interaction --no-update
6376
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
6477
6578
- name: List Installed Dependencies

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ build
44
composer.lock
55
coverage
66
phpunit.xml
7-
phpstan.neon
87
testbench.yaml
98
vendor
109
node_modules

composer.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,19 @@
3636
"require": {
3737
"php": "^8.0|^8.1|^8.2|^8.3",
3838
"guzzlehttp/guzzle": "^7.5",
39-
"illuminate/contracts": "^8.50|^9.0|^10.0|^11.0",
40-
"illuminate/support": "^8.50|^9.0|^10.0|^11.0",
39+
"illuminate/contracts": "^8.50|^9.0|^10.0|^11.0|^12.0",
40+
"illuminate/support": "^8.50|^9.0|^10.0|^11.0|^12.0",
4141
"spatie/laravel-package-tools": "^1.11"
4242
},
4343
"require-dev": {
44-
"laravel/pint": "^1.0",
44+
"laravel/pint": "^1.0|^1.14",
4545
"nunomaduro/collision": "^5.3|^6.0|^v7.10|^8.1.1",
46-
"nunomaduro/larastan": "^1.0.4|^2.2",
47-
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0",
48-
"pestphp/pest": "^1.21|^2.34",
49-
"pestphp/pest-plugin-laravel": "^1.1|^v2.3.0",
50-
"phpstan/extension-installer": "^1.1",
51-
"phpstan/phpstan-deprecation-rules": "^1.0",
52-
"phpstan/phpstan-phpunit": "^1.0",
53-
"phpunit/phpunit": "^9.5|^10.4"
46+
"nunomaduro/larastan": "^1.0|^2.0|^3.0",
47+
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0",
48+
"pestphp/pest": "^1.21|^2.0|^3.7",
49+
"pestphp/pest-plugin-laravel": "^1.1|^v2.3.0|^3.0",
50+
"phpstan/extension-installer": "^1.3|^2.0",
51+
"phpstan/phpstan-deprecation-rules": "^1.1|^2.0"
5452
},
5553
"autoload": {
5654
"files": [

phpstan.neon.dist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ parameters:
1010
tmpDir: build/phpstan
1111
checkOctaneCompatibility: true
1212
checkModelProperties: true
13-
checkMissingIterableValueType: false
14-

src/Events/PaymentWebhookReceivedEvent.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ class PaymentWebhookReceivedEvent
1616
*
1717
* @return void
1818
*/
19-
public function __construct(public $webhookPayload)
20-
{
21-
}
19+
public function __construct(public $webhookPayload) {}
2220

2321
/**
2422
* Get the channels the event should broadcast on.

src/Exceptions/InvalidConfigurationException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55
use Exception;
66

7-
class InvalidConfigurationException extends Exception
8-
{
9-
}
7+
class InvalidConfigurationException extends Exception {}

src/Jobs/ProcessPaymentWebhookJob.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,5 @@ class ProcessPaymentWebhookJob implements ShouldQueue
1717
*
1818
* @return void
1919
*/
20-
public function __construct(public $webhookPayload)
21-
{
22-
}
20+
public function __construct(public $webhookPayload) {}
2321
}

src/LaravelMultipaymentGatewaysServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private function registerWebHookRoute()
6363
private function registerWebHookBindings()
6464
{
6565
$this->app->scoped(PaymentWebhookConfigRepository::class, function () {
66-
$configRepository = new PaymentWebhookConfigRepository();
66+
$configRepository = new PaymentWebhookConfigRepository;
6767
$webhookConfigs = config('multipayment-gateways.webhooks');
6868

6969
collect($webhookConfigs)

src/Models/PaymentWebhookLog.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class PaymentWebhookLog extends Model
1919

2020
public static function storePaymentWebhook(PaymentWebhookConfig $config, Request $request, $requestHash): PaymentWebhookLog
2121
{
22-
// @phpstan-ignore-next-line
2322
return self::create([
2423
'payment_gateway' => $config->name,
2524
'request_hash' => $requestHash,

src/Services/HttpClientWrapper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class HttpClientWrapper implements HttpClientWrapperContract
99
{
1010
use ConsumesExternalServices;
1111

12-
public function __construct(protected $baseUri, protected $secret)
13-
{
14-
}
12+
public function __construct(protected $baseUri, protected $secret) {}
1513

1614
/**
1715
* Send a GET request to the payment gateway

0 commit comments

Comments
 (0)