Skip to content

Commit 4d01b0f

Browse files
committed
Fix PHPStan and Rector tooling
1 parent 2d89fa4 commit 4d01b0f

5 files changed

Lines changed: 1721 additions & 31 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/.firebaserc
1010
/.php-cs-fixer.cache
1111
/.phpunit.cache
12-
/.phpunit.result.cache
1312
/composer.lock
1413
/phpstan.neon
1514
/phpunit.xml

phpstan.neon.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
parameters:
22
level: 8
3+
bootstrapFiles:
4+
- tools/.phpstan/vendor/autoload.php
35
paths:
46
- src/
57
- tests/

rector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
earlyReturn: true,
2323
phpunitCodeQuality: true,
2424
)
25+
->withBootstrapFiles(["tools/.rector/vendor/autoload.php"])
2526
->withImportNames(importShortClasses: false, removeUnusedImports: true)
2627
->withAttributesSets(phpunit: true)
2728
->withComposerBased(phpunit: true)

tools/.rector/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"require-dev": {
3+
"phpunit/phpunit": "^12.5.11",
34
"rector/rector": "^2.3.6"
45
},
56
"config": {

0 commit comments

Comments
 (0)