Skip to content

Commit 36516ad

Browse files
committed
update phpstan ignores
1 parent 0366b5d commit 36516ad

File tree

3 files changed

+64
-17
lines changed

3 files changed

+64
-17
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
"require-dev": {
3333
"ext-sqlite3": "*",
3434
"brianium/paratest": "^5.0|^6.0|^7.0|^8.0|^9.0",
35+
"larastan/larastan": "^3.0",
3536
"laravel/pint": "^1.10",
3637
"monolog/monolog": "*",
3738
"nunomaduro/collision": "^6.0|^7.0|^8.0|^9.0",
38-
"larastan/larastan": "^2.6|^3.0",
3939
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
4040
"phpunit/phpunit": "^9.0|^10.0|^11.0|^12.0"
4141
},

phpstan-baseline.neon

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,97 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Offset '1' on array\\<string, non\\-empty\\-array\\<int\\<0, max\\>, mixed\\>\\> in empty\\(\\) does not exist\\.$#"
4+
message: '#^Offset ''1'' on array\<string, non\-empty\-list\> in empty\(\) does not exist\.$#'
5+
identifier: empty.offset
56
count: 1
67
path: src/DataTableComponent.php
78

89
-
9-
message: "#^Offset '99' on array\\<string, non\\-empty\\-array\\<int\\<0, max\\>, mixed\\>\\> in isset\\(\\) does not exist\\.$#"
10+
message: '#^Offset ''99'' on array\<string, non\-empty\-list\> in isset\(\) does not exist\.$#'
11+
identifier: isset.offset
1012
count: 1
1113
path: src/DataTableComponent.php
1214

1315
-
14-
message: "#^Offset '99' on non\\-empty\\-array\\<1\\|string, array\\<int\\<0, max\\>, mixed\\>\\> in isset\\(\\) does not exist\\.$#"
16+
message: '#^Offset ''99'' on non\-empty\-array\<1\|string, list\> in isset\(\) does not exist\.$#'
17+
identifier: isset.offset
1518
count: 1
1619
path: src/DataTableComponent.php
1720

1821
-
19-
message: "#^Property Illuminate\\\\Database\\\\Query\\\\Builder\\:\\:\\$joins \\(array\\) on left side of \\?\\? is not nullable\\.$#"
22+
message: '#^Parameter \#1 \$view of function view expects view\-string\|null, string given\.$#'
23+
identifier: argument.type
2024
count: 1
2125
path: src/DataTableComponent.php
2226

2327
-
24-
message: "#^Property Rappasoft\\\\LaravelLivewireTables\\\\DataTableComponent\\:\\:\\$model has no type specified\\.$#"
28+
message: '#^Property Rappasoft\\LaravelLivewireTables\\DataTableComponent\:\:\$model has no type specified\.$#'
29+
identifier: missingType.property
2530
count: 1
2631
path: src/DataTableComponent.php
2732

2833
-
29-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
34+
message: '#^Parameter \#1 \$view of function view expects view\-string\|null, string given\.$#'
35+
identifier: argument.type
36+
count: 1
37+
path: src/View/Components/FilterPill.php
38+
39+
-
40+
message: '#^Unsafe usage of new static\(\)\.$#'
41+
identifier: new.static
3042
count: 1
3143
path: src/Views/Action.php
3244

3345
-
34-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
46+
message: '#^Unsafe usage of new static\(\)\.$#'
47+
identifier: new.static
3548
count: 1
3649
path: src/Views/Column.php
3750

3851
-
39-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
52+
message: '#^Unsafe usage of new static\(\)\.$#'
53+
identifier: new.static
4054
count: 1
4155
path: src/Views/Filter.php
4256

4357
-
44-
message: "#^Parameter \\#1 \\$callback of method Illuminate\\\\Support\\\\Collection\\<int,string\\>\\:\\:filter\\(\\) expects \\(callable\\(string, int\\)\\: bool\\)\\|null, Closure\\(mixed\\)\\: int\\<0, max\\> given\\.$#"
58+
message: '#^Parameter \#1 \$callback of method Illuminate\\Support\\Collection\<int,string\>\:\:filter\(\) expects \(callable\(string, int\)\: bool\)\|null, Closure\(mixed\)\: int\<0, max\> given\.$#'
59+
identifier: argument.type
4560
count: 1
4661
path: src/Views/Filters/MultiSelectDropdownFilter.php
4762

4863
-
49-
message: "#^Unable to resolve the template type TMapWithKeysKey in call to method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),mixed\\>\\:\\:mapWithKeys\\(\\)$#"
64+
message: '#^Unable to resolve the template type TMapWithKeysKey in call to method Illuminate\\Support\\Collection\<\(int\|string\),mixed\>\:\:mapWithKeys\(\)$#'
65+
identifier: argument.templateType
5066
count: 1
5167
path: src/Views/Filters/MultiSelectDropdownFilter.php
5268

5369
-
54-
message: "#^Unable to resolve the template type TMapWithKeysValue in call to method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),mixed\\>\\:\\:mapWithKeys\\(\\)$#"
70+
message: '#^Unable to resolve the template type TMapWithKeysValue in call to method Illuminate\\Support\\Collection\<\(int\|string\),mixed\>\:\:mapWithKeys\(\)$#'
71+
identifier: argument.templateType
5572
count: 1
5673
path: src/Views/Filters/MultiSelectDropdownFilter.php
5774

5875
-
59-
message: "#^Parameter \\#1 \\$callback of method Illuminate\\\\Support\\\\Collection\\<int,string\\>\\:\\:filter\\(\\) expects \\(callable\\(string, int\\)\\: bool\\)\\|null, Closure\\(mixed\\)\\: int\\<0, max\\> given\\.$#"
76+
message: '#^Parameter \#1 \$callback of method Illuminate\\Support\\Collection\<int,string\>\:\:filter\(\) expects \(callable\(string, int\)\: bool\)\|null, Closure\(mixed\)\: int\<0, max\> given\.$#'
77+
identifier: argument.type
6078
count: 1
6179
path: src/Views/Filters/MultiSelectFilter.php
6280

6381
-
64-
message: "#^Parameter \\#1 \\$callback of method Illuminate\\\\Support\\\\Collection\\<int,string\\>\\:\\:filter\\(\\) expects \\(callable\\(string, int\\)\\: bool\\)\\|null, Closure\\(mixed\\)\\: int\\<0, max\\> given\\.$#"
82+
message: '#^Parameter \#1 \$callback of method Illuminate\\Support\\Collection\<int,string\>\:\:filter\(\) expects \(callable\(string, int\)\: bool\)\|null, Closure\(mixed\)\: int\<0, max\> given\.$#'
83+
identifier: argument.type
6584
count: 1
6685
path: src/Views/Filters/NumberRangeFilter.php
6786

6887
-
69-
message: "#^Unable to resolve the template type TMapWithKeysKey in call to method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),mixed\\>\\:\\:mapWithKeys\\(\\)$#"
88+
message: '#^Unable to resolve the template type TMapWithKeysKey in call to method Illuminate\\Support\\Collection\<\(int\|string\),mixed\>\:\:mapWithKeys\(\)$#'
89+
identifier: argument.templateType
7090
count: 1
7191
path: src/Views/Filters/SelectFilter.php
7292

7393
-
74-
message: "#^Unable to resolve the template type TMapWithKeysValue in call to method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),mixed\\>\\:\\:mapWithKeys\\(\\)$#"
94+
message: '#^Unable to resolve the template type TMapWithKeysValue in call to method Illuminate\\Support\\Collection\<\(int\|string\),mixed\>\:\:mapWithKeys\(\)$#'
95+
identifier: argument.templateType
7596
count: 1
7697
path: src/Views/Filters/SelectFilter.php

phpstan.neon

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,30 @@ parameters:
1414
reportUnmatchedIgnoredErrors: false
1515
ignoreErrors:
1616
- identifier: missingType.generics
17-
- identifier: missingType.iterableValue
17+
- identifier: missingType.iterableValue
18+
- identifier: trait.unused
19+
- identifier: deadCode.unreachable
20+
- identifier: booleanNot.alwaysTrue
21+
paths:
22+
- src/Views/Columns/Traits/HasDataTableComponent.php
23+
- identifier: notIdentical.alwaysTrue
24+
paths:
25+
- src/Traits/Filters/Helpers/FilterPillsHelpers.php
26+
- src/Traits/Helpers/CustomisationsHelpers.php
27+
- src/Traits/Helpers/QueryHelpers.php
28+
- src/Views/Columns/Traits/HasSlot.php
29+
- src/Views/Columns/Traits/Helpers/ArrayColumnHelpers.php
30+
- identifier: instanceof.alwaysTrue
31+
paths:
32+
- src/Views/Columns/Traits/HasFooter.php
33+
- src/Views/Columns/Traits/HasSecondaryHeader.php
34+
- identifier: function.alreadyNarrowedType
35+
paths:
36+
- src/Views/Columns/Traits/Helpers/ArrayColumnHelpers.php
37+
- src/Features/AutoInjectRappasoftAssets.php
38+
- src/Traits/WithBulkActions.php
39+
- src/Views/Actions/Traits/HasActionAttributes.php
40+
- src/Views/Filters/MultiSelectDropdownFilter.php
41+
- src/Views/Filters/Traits/HasOptions.php
42+
- src/Views/Traits/Core/HasTheme.php
43+
- src/Views/Traits/Core/HasView.php

0 commit comments

Comments
 (0)