Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit b3bfb1f

Browse files
Bump phpstan/phpstan from 1.12.12 to 2.1.8 (#256)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: gomzyakov <alexander.gomzyakov@gmail.com>
1 parent 3e31ce7 commit b3bfb1f

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ build: ## Build docker image for local development
1313
docker compose build
1414

1515
install: ## Install regular PHP dependencies
16-
docker compose run --rm app composer install --no-interaction --prefer-dist
16+
docker compose run --rm --remove-orphans app composer install --no-interaction --prefer-dist
1717

1818
test: ## Execute php tests and linters
19-
docker compose run app composer test
19+
docker compose run --rm --remove-orphans app composer test
2020

2121
phpunit: ## Execute PHPUnit tests
22-
docker compose run app composer phpunit
22+
docker compose run --rm --remove-orphans app composer phpunit
2323

2424
shell: ## Start shell into container with php
25-
docker compose run app sh
25+
docker compose run --rm --remove-orphans app sh
2626

2727
clean: ## Remove all dependencies and unimportant files
2828
-rm -Rf ./vendor

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"require-dev": {
2323
"friendsofphp/php-cs-fixer": "^3.62",
2424
"phpunit/phpunit": "^11.3",
25-
"phpstan/phpstan": "^1.12",
25+
"phpstan/phpstan": "^2.1",
2626
"mockery/mockery": "^1.6"
2727
},
2828
"autoload": {

composer.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Rules.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static function getRules(array $overwritten_rules = []): array
2727
/** @var array{rules: array<string, array<string, mixed>|bool>} $rules */
2828
$rules = json_decode($pint_rules, true);
2929

30+
/** @var array<string, array<string, mixed>|bool> */
3031
return array_replace_recursive($rules['rules'], $overwritten_rules);
3132
}
3233
}

0 commit comments

Comments
 (0)