Skip to content

Joomla 6 and PHP 8.4 compatibility for DOCman#755

Merged
amazeika merged 2 commits into
masterfrom
feature/754-DOCman-j6-php84
May 28, 2026
Merged

Joomla 6 and PHP 8.4 compatibility for DOCman#755
amazeika merged 2 commits into
masterfrom
feature/754-DOCman-j6-php84

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions Bot commented Mar 7, 2026

Closes #754

@amazeika amazeika added this to the v6.1.0 milestone May 28, 2026
The php84 fix in 879a59a changed getAccept() to $defaults = NULL on
both KHttpRequestInterface and KHttpRequest. This was unnecessary and
backward-incompatible:

- The original `array $defaults = []` triggers no PHP 8.4 notice or
  deprecation (the only 8.4 issue would be `array ... = NULL`, which is
  not what was there).
- Widening the interface param to mixed makes every downstream class
  that still declares `array $defaults = []` a contravariance violation,
  causing a fatal "must be compatible" error on class load.

Restore the original, BC-safe typed signature.
@amazeika amazeika merged commit fc3b827 into master May 28, 2026
@amazeika amazeika deleted the feature/754-DOCman-j6-php84 branch May 28, 2026 09:52
@amazeika amazeika mentioned this pull request May 28, 2026
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.

Joomla 6 and PHP 8.4 compatibility for DOCman

2 participants