Skip to content

[4.x] Remove the unused sodium_compat import and the PECL libsodium reference - #44

Merged
Hackwar merged 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-sodium-legacy-cleanup
Nov 17, 2026
Merged

Hackwar merged 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-sodium-legacy-cleanup

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

  • Cipher\Sodium imports ParagonIE\Sodium\Compat but never uses it; it calls the sodium_* functions directly (which paragonie/sodium_compat polyfills when ext-sodium is missing). The import is removed.
  • The suggest entry for paragonie/sodium_compat mentioned ext/libsodium, the PECL extension that was only relevant before PHP 7.2. It now reads "To use Sodium cipher if ext-sodium is not available".

No behaviour change.

Testing Instructions

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

Documentation Changes Required

None.

🤖 Generated with Claude Code

Cipher\Sodium imported ParagonIE\Sodium\Compat but calls the sodium_*
functions directly. The composer suggestion still mentioned ext/libsodium,
the PECL extension that was only needed before PHP 7.2.

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

1 participant