Skip to content

chore: add PHPStan level 9 - #20

Draft
donatj wants to merge 1 commit into
masterfrom
chore/phpstan-level-9
Draft

donatj wants to merge 1 commit into
masterfrom
chore/phpstan-level-9

Conversation

@donatj

@donatj donatj commented Oct 24, 2026

Copy link
Copy Markdown
Member

This package lacks static analysis. Array contracts and PHP compatibility problems can therefore reach releases unchecked.

Changes:

  • Add PHPStan 2.3.1 as a development dependency.
  • Add a level-9 configuration for source files.
  • Run PHPStan in continuous integration.
  • Define precise array contracts in public PHPDoc.
  • Make array flattening preserve values that cannot be used as array keys.
  • Regenerate the README and add a regression test.

Validation:

  • composer validate --strict --no-check-publish
  • composer install --dry-run
  • vendor/bin/phpstan analyse
  • vendor/bin/phpunit --do-not-cache-result
  • vendor/bin/mddoc --dry-run
  • php -l src/array.php
  • Ruby YAML parsing
  • git diff --check

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.

1 participant