Skip to content

[4.x] Analyse with PHPStan for PHP 8.3 and drop symfony/polyfill-util - #43

Merged
Hackwar merged 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-tooling-php83
Nov 17, 2026
Merged

Hackwar merged 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-tooling-php83

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary of Changes

  • phpstan.neon analysed for PHP 8.1 (phpVersion: 80100) although the package requires ^8.3.0; it now uses 80300.
  • symfony/polyfill-util (abandoned) was a dev dependency only for Binary::strlen() in CryptoTest/SodiumTest. That helper guarded against mbstring.func_overload, which no longer exists since PHP 8.0, so the tests use \strlen() and the dependency is dropped.

The other tooling issues from the same review are already covered by open PRs and left to them: #30 (drops the no-op ReflectionProperty::setAccessible()) and #31 (PHPUnit metadata attributes, stubs instead of mocks without expectations, migrated phpunit.xml.dist). Both still merge cleanly with this PR.

Testing Instructions

php vendor/bin/phpunit
php vendor/bin/phpstan analyse

Both pass; composer update no longer installs symfony/polyfill-util.

Documentation Changes Required

None.

🤖 Generated with Claude Code

The package requires PHP 8.3 but PHPStan analysed for PHP 8.1. The
abandoned symfony/polyfill-util was only used for Binary::strlen() in the
tests, which guarded against mbstring.func_overload, removed in PHP 8.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Hackwar
Hackwar merged commit aa846c0 into joomla-framework:4.x-dev Nov 17, 2026
7 checks passed
@Hackwar
Hackwar deleted the 4.x-tooling-php83 branch November 17, 2026 09:27
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