Skip to content

Commit c6f7d01

Browse files
enhance: Update GitHub Actions workflows and dependencies for Laravel 12
- Fix run-tests.yml matrix: Add PHP 8.1-8.3, Laravel 10-12 with proper excludes - Replace abandoned nunomaduro/larastan with larastan/larastan ^2.0 || ^3.0 - Add orchestra/testbench ^10.0 support for Laravel 12 - Update PHPStan configuration: remove deprecated checkMissingIterableValueType - Regenerate PHPStan baseline for PHPStan 2.x compatibility - All tests passing (27/27), PHPStan analysis clean, imports verified
1 parent 4b62749 commit c6f7d01

File tree

4 files changed

+79
-8
lines changed

4 files changed

+79
-8
lines changed

.github/workflows/run-tests.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,24 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.2, 8.3]
17-
laravel: [10.*, 11.*]
16+
php: [8.1, 8.2, 8.3]
17+
laravel: [10.*, 11.*, 12.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
2020
- laravel: 10.*
2121
testbench: 8.*
2222
carbon: ^2.63
23-
php: 8.1
2423
- laravel: 11.*
2524
testbench: 9.*
2625
carbon: ^3.0
27-
php: 8.2
26+
- laravel: 12.*
27+
testbench: 10.*
28+
carbon: ^3.0
29+
exclude:
30+
- laravel: 11.*
31+
php: 8.1
32+
- laravel: 12.*
33+
php: 8.1
2834

2935
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3036

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
"illuminate/contracts": "^10.0 || ^11.0 || ^12.0"
2222
},
2323
"require-dev": {
24+
"larastan/larastan": "^2.0 || ^3.0",
2425
"laravel/pint": "^1.0",
2526
"nunomaduro/collision": "^7.8 || ^8.0",
26-
"nunomaduro/larastan": "^2.0.1",
27-
"orchestra/testbench": "^8.8 || ^9.0",
27+
"orchestra/testbench": "^8.8 || ^9.0 || ^10.0",
2828
"pestphp/pest": "^2.20 || ^3.7",
2929
"pestphp/pest-plugin-arch": "^2.0 || ^3.0",
3030
"pestphp/pest-plugin-laravel": "^2.0 || ^3.0",

phpstan-baseline.neon

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Method HPWebdeveloper\\LaravelPayPocket\\Interfaces\\WalletOperations\:\:pay\(\) has invalid return type HPWebdeveloper\\LaravelPayPocket\\Interfaces\\TKey\.$#'
5+
identifier: class.notFound
6+
count: 1
7+
path: src/Interfaces/WalletOperations.php
8+
9+
-
10+
message: '#^Type HPWebdeveloper\\LaravelPayPocket\\Interfaces\\TKey in generic type Illuminate\\Support\\Collection\<HPWebdeveloper\\LaravelPayPocket\\Interfaces\\TKey, HPWebdeveloper\\LaravelPayPocket\\Models\\WalletsLog\> in PHPDoc tag @return is not subtype of template type TKey of \(int\|string\) of class Illuminate\\Support\\Collection\.$#'
11+
identifier: generics.notSubtype
12+
count: 1
13+
path: src/Interfaces/WalletOperations.php
14+
15+
-
16+
message: '#^Property HPWebdeveloper\\LaravelPayPocket\\Models\\Wallet\:\:\$createdLog \(HPWebdeveloper\\LaravelPayPocket\\Models\\WalletsLog\) does not accept Illuminate\\Database\\Eloquent\\Model\.$#'
17+
identifier: assign.propertyType
18+
count: 1
19+
path: src/Models/Wallet.php
20+
21+
-
22+
message: '#^Method HPWebdeveloper\\LaravelPayPocket\\Services\\PocketServices\:\:pay\(\) has invalid return type HPWebdeveloper\\LaravelPayPocket\\Services\\TKey\.$#'
23+
identifier: class.notFound
24+
count: 1
25+
path: src/Services/PocketServices.php
26+
27+
-
28+
message: '#^Method HPWebdeveloper\\LaravelPayPocket\\Services\\PocketServices\:\:pay\(\) should return Illuminate\\Support\\Collection\<HPWebdeveloper\\LaravelPayPocket\\Services\\TKey, HPWebdeveloper\\LaravelPayPocket\\Models\\WalletsLog\> but returns Illuminate\\Support\\Collection\<HPWebdeveloper\\LaravelPayPocket\\Interfaces\\TKey, HPWebdeveloper\\LaravelPayPocket\\Models\\WalletsLog\>\.$#'
29+
identifier: return.type
30+
count: 1
31+
path: src/Services/PocketServices.php
32+
33+
-
34+
message: '#^Type HPWebdeveloper\\LaravelPayPocket\\Services\\TKey in generic type Illuminate\\Support\\Collection\<HPWebdeveloper\\LaravelPayPocket\\Services\\TKey, HPWebdeveloper\\LaravelPayPocket\\Models\\WalletsLog\> in PHPDoc tag @return is not subtype of template type TKey of \(int\|string\) of class Illuminate\\Support\\Collection\.$#'
35+
identifier: generics.notSubtype
36+
count: 1
37+
path: src/Services/PocketServices.php
38+
39+
-
40+
message: '#^Trait HPWebdeveloper\\LaravelPayPocket\\Traits\\GetWallets is used zero times and is not analysed\.$#'
41+
identifier: trait.unused
42+
count: 1
43+
path: src/Traits/GetWallets.php
44+
45+
-
46+
message: '#^Trait HPWebdeveloper\\LaravelPayPocket\\Traits\\HandlesDeposit is used zero times and is not analysed\.$#'
47+
identifier: trait.unused
48+
count: 1
49+
path: src/Traits/HandlesDeposit.php
50+
51+
-
52+
message: '#^Trait HPWebdeveloper\\LaravelPayPocket\\Traits\\HandlesPayment is used zero times and is not analysed\.$#'
53+
identifier: trait.unused
54+
count: 1
55+
path: src/Traits/HandlesPayment.php
56+
57+
-
58+
message: '#^Trait HPWebdeveloper\\LaravelPayPocket\\Traits\\HasWallet is used zero times and is not analysed\.$#'
59+
identifier: trait.unused
60+
count: 1
61+
path: src/Traits/HasWallet.php
62+
63+
-
64+
message: '#^Trait HPWebdeveloper\\LaravelPayPocket\\Traits\\ManagesWallet is used zero times and is not analysed\.$#'
65+
identifier: trait.unused
66+
count: 1
67+
path: src/Traits/ManagesWallet.php

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-

0 commit comments

Comments
 (0)