Skip to content

fix: Require PHP 8.4, update dependencies, clean up project files - #15

Merged
temp merged 7 commits into
mainfrom
chore/php84-cleanup
Nov 3, 2026
Merged

temp merged 7 commits into
mainfrom
chore/php84-cleanup

Conversation

@temp

@temp temp commented Nov 3, 2026

Copy link
Copy Markdown
Member

Changes

  • Require PHP ^8.4, phpstan ^2.3, nikic/php-parser ^5.0, nette/utils ^4.1
  • Dev: PHPUnit ^13.4, phpstan-phpunit ^2.1; remove unused php-coveralls and composer scripts
  • Remove stale dev-master branch alias
  • Merge tests, coding standards and PHPStan workflows into build.yml (PHP 8.4/8.5, lowest/highest dependencies)
  • Code coverage workflow on PHP 8.5
  • Replace Renovate with Dependabot (GitHub Actions + composer)
  • Fix unused foreach keys reported by PHPStan
  • README: correct namespace (BrainbitsPhpStan\…), badges for main/Codecov, fix attribute example
  • Add CLAUDE.md

Impact for users

No behaviour change: rule classes, namespace, rules.neon and parameters are unchanged. Projects on PHP 8.3 or PHPStan < 2.3 simply stay on the previous release.

🤖 Generated with Claude Code

temp and others added 3 commits November 3, 2026 17:22
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Require PHP ^8.4, phpstan ^2.3, nikic/php-parser ^5.0, nette/utils ^4.1
- Update dev dependencies to PHPUnit ^13.4 and phpstan-phpunit ^2.1
- Remove unused php-coveralls dependency and composer scripts
- Remove stale dev-master branch alias
- Merge tests, coding standards and PHPStan workflows into build.yml,
  test PHP 8.4 and 8.5 with lowest and highest dependencies
- Update code coverage workflow to PHP 8.5
- Update PHPUnit config schema to 13.4
- Fix unused foreach keys reported by PHPStan
- Fix namespace, badges and attribute example in README
- Update CLAUDE.md accordingly

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.96%. Comparing base (aacb52a) to head (78b4b3f).

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #15      +/-   ##
============================================
- Coverage     94.87%   93.96%   -0.91%     
  Complexity       45       45              
============================================
  Files             2        2              
  Lines           117      116       -1     
============================================
- Hits            111      109       -2     
- Misses            6        7       +1     
Flag Coverage Δ
unittests 93.96% <100.00%> (-0.91%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

temp and others added 4 commits November 3, 2026 17:41
…threshold

- Determine composer cache directory via `composer config cache-files-dir`
- Drop deprecated `--no-suggest` option
- Restrict workflow token to `contents: read`
- Allow 1% project coverage threshold in codecov.yml
- README: CoversClassPresentRule does not check the parent class

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PHPStan 2 ships php-parser in its PHAR, extensions should not require it separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Allow phpstan ^2.0 and nette/utils ^4.0 again, the code does not need newer
versions. Lower phpstan-phpunit to ^2.0 so the lowest CI run actually tests
phpstan 2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@temp
temp merged commit f227a1c into main Nov 3, 2026
7 checks passed
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 4.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@temp
temp deleted the chore/php84-cleanup branch November 3, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant