Skip to content

Commit 95ff6b7

Browse files
committed
update require-dev
1 parent 7df0bd3 commit 95ff6b7

File tree

4 files changed

+69
-104
lines changed

4 files changed

+69
-104
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
"ramsey/uuid": "^4.0"
3333
},
3434
"require-dev": {
35-
"brianium/paratest": "^7.2",
36-
"ergebnis/phpstan-rules": "^1.0",
35+
"brianium/paratest": "^7.4",
36+
"ergebnis/phpstan-rules": "^2.1",
3737
"infection/infection": "~0.27",
3838
"laravel/cashier": "^15.0",
39-
"nunomaduro/collision": "^7.7",
40-
"nunomaduro/larastan": "^2.6",
41-
"orchestra/testbench": "^8.5",
39+
"nunomaduro/collision": "^7.7|^8.0",
40+
"larastan/larastan": "^2.8",
41+
"orchestra/testbench": "^8.21|^9.0",
4242
"phpstan/phpstan": "^1.10",
43-
"phpunit/phpunit": "^10.2",
43+
"phpunit/phpunit": "^10.5",
4444
"rector/rector": "^0.19",
4545
"symplify/easy-coding-standard": "^12.0"
4646
},

phpstan.common.neon

Lines changed: 3 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,8 @@
11
includes:
2-
- vendor/nunomaduro/larastan/extension.neon
2+
- vendor/larastan/larastan/extension.neon
3+
- vendor/ergebnis/phpstan-rules/rules.neon
34

45
parameters:
56
level: 9
67
fileExtensions:
7-
- php
8-
9-
parametersSchema:
10-
ergebnis: structure([
11-
allowAbstractClasses: bool()
12-
classesAllowedToBeExtended: listOf(string())
13-
classesNotRequiredToBeAbstractOrFinal: listOf(string())
14-
interfacesImplementedByContainers: listOf(string())
15-
])
16-
17-
rules:
18-
- Ergebnis\PHPStan\Rules\Closures\NoNullableReturnTypeDeclarationRule
19-
- Ergebnis\PHPStan\Rules\Closures\NoParameterWithNullableTypeDeclarationRule
20-
- Ergebnis\PHPStan\Rules\Expressions\NoCompactRule
21-
- Ergebnis\PHPStan\Rules\Expressions\NoEmptyRule
22-
- Ergebnis\PHPStan\Rules\Expressions\NoErrorSuppressionRule
23-
- Ergebnis\PHPStan\Rules\Expressions\NoEvalRule
24-
- Ergebnis\PHPStan\Rules\Expressions\NoIssetRule
25-
- Ergebnis\PHPStan\Rules\Files\DeclareStrictTypesRule
26-
- Ergebnis\PHPStan\Rules\Functions\NoNullableReturnTypeDeclarationRule
27-
- Ergebnis\PHPStan\Rules\Functions\NoParameterWithNullableTypeDeclarationRule
28-
- Ergebnis\PHPStan\Rules\Functions\NoParameterWithNullDefaultValueRule
29-
- Ergebnis\PHPStan\Rules\Methods\FinalInAbstractClassRule
30-
- Ergebnis\PHPStan\Rules\Methods\NoConstructorParameterWithDefaultValueRule
31-
- Ergebnis\PHPStan\Rules\Methods\PrivateInFinalClassRule
32-
- Ergebnis\PHPStan\Rules\Statements\NoSwitchRule
33-
34-
services:
35-
-
36-
class: Ergebnis\PHPStan\Rules\Classes\FinalRule
37-
arguments:
38-
allowAbstractClasses: %ergebnis.allowAbstractClasses%
39-
classesNotRequiredToBeAbstractOrFinal: %ergebnis.classesNotRequiredToBeAbstractOrFinal%
40-
tags:
41-
- phpstan.rules.rule
42-
43-
-
44-
class: Ergebnis\PHPStan\Rules\Classes\NoExtendsRule
45-
arguments:
46-
classesAllowedToBeExtended: %ergebnis.classesAllowedToBeExtended%
47-
tags:
48-
- phpstan.rules.rule
49-
50-
-
51-
class: Ergebnis\PHPStan\Rules\Classes\PHPUnit\Framework\TestCaseWithSuffixRule
52-
tags:
53-
- phpstan.rules.rule
54-
55-
-
56-
class: Ergebnis\PHPStan\Rules\Methods\NoParameterWithContainerTypeDeclarationRule
57-
arguments:
58-
interfacesImplementedByContainers: %ergebnis.interfacesImplementedByContainers%
59-
tags:
60-
- phpstan.rules.rule
8+
- php

phpstan.src.neon

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,32 @@ parameters:
77
fileExtensions:
88
- php
99
ergebnis:
10-
allowAbstractClasses: true
11-
classesAllowedToBeExtended:
12-
# laravel
13-
- Illuminate\Support\ServiceProvider
14-
- Illuminate\Database\Eloquent\Model
10+
noParameterWithNullableTypeDeclaration:
11+
enabled: false
12+
noNullableReturnTypeDeclaration:
13+
enabled: false
14+
noParameterWithNullDefaultValue:
15+
enabled: false
16+
final:
17+
allowAbstractClasses: true
18+
classesNotRequiredToBeAbstractOrFinal:
19+
- Bavix\Wallet\Models\Wallet
20+
- Bavix\Wallet\Models\Transfer
21+
- Bavix\Wallet\Models\Transaction
22+
noExtends:
23+
classesAllowedToBeExtended:
24+
# laravel
25+
- Illuminate\Support\ServiceProvider
26+
- Illuminate\Database\Eloquent\Model
1527

16-
# php exceptions
17-
- LogicException
18-
- RuntimeException
19-
- UnderflowException
20-
- UnexpectedValueException
21-
- InvalidArgumentException
22-
23-
classesNotRequiredToBeAbstractOrFinal:
24-
- Bavix\Wallet\Models\Wallet
25-
- Bavix\Wallet\Models\Transfer
26-
- Bavix\Wallet\Models\Transaction
27-
interfacesImplementedByContainers:
28-
- Psr\Container\ContainerInterface
28+
# php exceptions
29+
- LogicException
30+
- RuntimeException
31+
- UnderflowException
32+
- UnexpectedValueException
33+
- InvalidArgumentException
34+
noParameterWithContainerTypeDeclaration:
35+
interfacesImplementedByContainers:
36+
- Psr\Container\ContainerInterface
2937
paths:
30-
- src/
38+
- src/

phpstan.tests.neon

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,41 @@ parameters:
99
fileExtensions:
1010
- php
1111
ergebnis:
12-
allowAbstractClasses: false
13-
classesAllowedToBeExtended:
14-
# laravel
15-
- Illuminate\Support\ServiceProvider
16-
- Illuminate\Database\Eloquent\Model
17-
- Illuminate\Database\Migrations\Migration
18-
- Illuminate\Database\Eloquent\Factories\Factory
12+
noParameterWithNullableTypeDeclaration:
13+
enabled: false
14+
noNullableReturnTypeDeclaration:
15+
enabled: false
16+
noParameterWithNullDefaultValue:
17+
enabled: false
18+
final:
19+
allowAbstractClasses: false
20+
classesNotRequiredToBeAbstractOrFinal:
21+
- Bavix\Wallet\Models\Wallet
22+
- Bavix\Wallet\Models\Transfer
23+
- Bavix\Wallet\Models\Transaction
24+
noExtends:
25+
classesAllowedToBeExtended:
26+
# laravel
27+
- Illuminate\Support\ServiceProvider
28+
- Illuminate\Database\Eloquent\Model
29+
- Illuminate\Database\Migrations\Migration
30+
- Illuminate\Database\Eloquent\Factories\Factory
1931

20-
# php exceptions
21-
- RuntimeException
22-
- InvalidArgumentException
32+
# php exceptions
33+
- RuntimeException
34+
- InvalidArgumentException
2335

24-
# phpunit
25-
- Orchestra\Testbench\TestCase
26-
- Bavix\Wallet\Test\Infra\TestCase
36+
# phpunit
37+
- Orchestra\Testbench\TestCase
38+
- Bavix\Wallet\Test\Infra\TestCase
2739

28-
# wallet
29-
- Bavix\Wallet\Models\Wallet
30-
- Bavix\Wallet\Models\Transfer
31-
- Bavix\Wallet\Models\Transaction
40+
# wallet
41+
- Bavix\Wallet\Models\Wallet
42+
- Bavix\Wallet\Models\Transfer
43+
- Bavix\Wallet\Models\Transaction
3244

33-
classesNotRequiredToBeAbstractOrFinal:
34-
- Bavix\Wallet\Models\Wallet
35-
- Bavix\Wallet\Models\Transfer
36-
- Bavix\Wallet\Models\Transaction
37-
interfacesImplementedByContainers:
38-
- Psr\Container\ContainerInterface
45+
noParameterWithContainerTypeDeclaration:
46+
interfacesImplementedByContainers:
47+
- Psr\Container\ContainerInterface
3948
paths:
40-
- tests/
49+
- tests/

0 commit comments

Comments
 (0)