Skip to content

Commit 68c4b91

Browse files
committed
Add phpstan-strict-rules and update README/CLAUDE.md
1 parent ab80c28 commit 68c4b91

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

CLAUDE.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
77
This is a Composer meta-package (`setono/code-quality-pack`) that bundles PHP code quality tools into a single dev dependency. It contains no source code — only `composer.json` defining the bundled tools:
88

99
- **ergebnis/composer-normalize** — composer.json normalization
10+
- **infection/infection** — mutation testing
11+
- **phpstan/phpstan** — static analysis
12+
- **phpstan/phpstan-strict-rules** — strict PHPStan rules
1013
- **rector/rector** — automated refactoring
1114
- **sylius-labs/coding-standard** — coding standards (PHP CodeSniffer based)
12-
- **vimeo/psalm** — static analysis
1315

1416
## Commands
1517

@@ -29,10 +31,12 @@ composer normalize
2931

3032
## CI
3133

32-
The GitHub Actions workflow (`.github/workflows/build.yaml`) runs on PHP 8.1–8.4 and validates `composer.json` (strict mode + normalization check). There are no tests to run.
34+
The GitHub Actions workflow (`.github/workflows/build.yaml`) runs on PHP 8.2–8.4 and validates `composer.json` (strict mode + normalization check). There are no tests to run.
35+
36+
## Important Workflow
37+
38+
When adding, removing, or changing dependencies in `composer.json`, always update `README.md` to reflect the current package list.
3339

3440
## Notes
3541

36-
- `composer.lock` is committed to version control
3742
- The `dealerdirect/phpcodesniffer-composer-installer` plugin is explicitly disallowed in composer config
38-
- Psalm supports both v5 and v6 (`^5.26.1 || ^6.10.3`)

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ composer require --dev setono/code-quality-pack
99

1010
* [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize)
1111
* Normalizes your `composer.json`. This has a few advantages - easier diffs being one of them.
12+
* [infection/infection](https://infection.github.io/)
13+
* Mutation testing framework to measure the quality of your tests.
14+
* [phpstan/phpstan](https://phpstan.org/)
15+
* A static analysis tool that finds bugs without running your code.
1216
* [rector/rector](https://getrector.org/documentation)
13-
* Easily refactors and upgrades your code base.
17+
* Easily refactors and upgrades your code base.
1418
* [sylius-labs/coding-standard](https://github.com/SyliusLabs/CodingStandard)
1519
* Sylius' coding standard. Very thorough.
16-
* [vimeo/psalm](https://psalm.dev/)
17-
* A static analysis tool much like PHPStan, but a lot of people would argue it's better.

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"ergebnis/composer-normalize": "^2.47",
99
"infection/infection": "^0.29",
1010
"phpstan/phpstan": "^2.1",
11+
"phpstan/phpstan-strict-rules": "^2.0",
1112
"rector/rector": "^2.0",
1213
"sylius-labs/coding-standard": "^4.4"
1314
},

0 commit comments

Comments
 (0)