Skip to content

[CI] Pin PHPStan and raise analysis to level max#4

Merged
smnandre merged 1 commit into
mainfrom
feat/phpstan-max
Jul 12, 2026
Merged

[CI] Pin PHPStan and raise analysis to level max#4
smnandre merged 1 commit into
mainfrom
feat/phpstan-max

Conversation

@smnandre

Copy link
Copy Markdown
Owner
  • Add phpstan/phpstan and phpstan/phpstan-webmozart-assert to require-dev
  • Include the webmozart extension in phpstan.dist.neon
  • Raise the analysis level from 9 to max
  • CI: run vendor/bin/phpstan on the resolved dependencies
  • Use Assert::isMap/allIsMap for nested JSON objects
  • Use Assert::allString for string lists
  • Remove redundant assertions and an obsolete @PHPStan-Ignore
  • Set Audit and Metric array annotations to array<array-key, mixed>

- Add phpstan/phpstan and phpstan/phpstan-webmozart-assert to require-dev
- Include the webmozart extension in phpstan.dist.neon
- Raise the analysis level from 9 to max
- CI: run vendor/bin/phpstan on the resolved dependencies
- Use Assert::isMap/allIsMap for nested JSON objects
- Use Assert::allString for string lists
- Remove redundant assertions and an obsolete @PHPStan-Ignore
- Set Audit and Metric array annotations to array<array-key, mixed>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (48843b3) to head (4d68d85).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##                main        #4   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        52        52           
===========================================
  Files             13        13           
  Lines            268       273    +5     
===========================================
+ Hits             268       273    +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@smnandre
smnandre merged commit 49b0a56 into main Jul 12, 2026
7 checks passed
@smnandre
smnandre deleted the feat/phpstan-max branch July 12, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants