Skip to content

Commit 5c9d90a

Browse files
committed
Fixes after merging Laravel 12 compatibility
1 parent c842ca0 commit 5c9d90a

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: true
1313
matrix:
1414
os: [ubuntu-latest]
15-
php: [8.1, 8.2, 8.3]
15+
php: [8.1, 8.2, 8.3, 8.4]
1616
laravel: ['10.*', '11.*', '12.*']
1717
dependency-version: [prefer-lowest, prefer-stable]
1818
include:
@@ -25,8 +25,9 @@ jobs:
2525
exclude:
2626
- php: 8.1
2727
laravel: 11.*
28-
- laravel: 12.*
29-
php: 8.1
28+
- php: 8.1
29+
laravel: 12.*
30+
3031

3132
name: Tests P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
3233

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"orchestra/testbench": "^8.0|^9.0|^10.0",
2727
"pestphp/pest": "^v2.30.0|^3.7",
2828
"pestphp/pest-plugin-arch": "^2.6|^3.0",
29-
"pestphp/pest-plugin-mock": "^2.0.0",
3029
"pestphp/pest-plugin-type-coverage": "^2.8|^3.3",
3130
"phpstan/phpstan": "^1.10.55|^2.1",
3231
"rector/rector": "^0.19|^2.0",

phpstan-baseline.neon

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Cannot call method merge\\(\\) on mixed\\.$#"
4+
message: '#^Parameter \#1 \$configuration of method TailwindMerge\\Factory\:\:withConfiguration\(\) expects array\<string, mixed\>, mixed given\.$#'
5+
identifier: argument.type
56
count: 1
67
path: src/TailwindMergeServiceProvider.php
78

89
-
9-
message: "#^Parameter \\#1 \\$configuration of method TailwindMerge\\\\Factory\\:\\:withConfiguration\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#"
10+
message: '#^Parameter \#1 \$name of method Illuminate\\View\\Compilers\\BladeCompiler\:\:directive\(\) expects string, mixed given\.$#'
11+
identifier: argument.type
1012
count: 1
1113
path: src/TailwindMergeServiceProvider.php
1214

1315
-
14-
message: "#^Parameter \\#1 \\$name of method Illuminate\\\\View\\\\Compilers\\\\BladeCompiler\\:\\:directive\\(\\) expects string, mixed given\\.$#"
16+
message: '#^Parameter \#1 \.\.\.\$args of method TailwindMerge\\Contracts\\TailwindMergeContract\:\:merge\(\) expects array\<array\<string\>\|string\>\|string, array\<int\|string, mixed\> given\.$#'
17+
identifier: argument.type
18+
count: 2
19+
path: src/TailwindMergeServiceProvider.php
20+
21+
-
22+
message: '#^Parameter \#2 \.\.\.\$args of method TailwindMerge\\Contracts\\TailwindMergeContract\:\:merge\(\) expects array\<array\<string\>\|string\>\|string, mixed given\.$#'
23+
identifier: argument.type
1524
count: 1
1625
path: src/TailwindMergeServiceProvider.php
1726

1827
-
19-
message: "#^Cannot call method merge\\(\\) on mixed\\.$#"
28+
message: '#^Cannot call method merge\(\) on mixed\.$#'
29+
identifier: method.nonObject
30+
count: 1
31+
path: src/helpers.php
32+
33+
-
34+
message: '#^Function twMerge\(\) should return string but returns mixed\.$#'
35+
identifier: return.type
2036
count: 1
2137
path: src/helpers.php

0 commit comments

Comments
 (0)