Skip to content

Fix HTML_QuickForm_hiddenselect::accept() signature for PHP 8#149

Merged
shannah merged 1 commit into
masterfrom
claude/fix-xataface-issue-148-ocw3N
May 17, 2026
Merged

Fix HTML_QuickForm_hiddenselect::accept() signature for PHP 8#149
shannah merged 1 commit into
masterfrom
claude/fix-xataface-issue-148-ocw3N

Conversation

@shannah

@shannah shannah commented May 17, 2026

Copy link
Copy Markdown
Owner

PHP 8 enforces LSP-compatible signatures on overrides. The parent
HTML_QuickForm_element::accept() declares two extra optional parameters
($required, $error), so the override in hiddenselect must accept them
too. Without this, loading the widget triggers a fatal error under
PHP 8.x.

Fixes #148

PHP 8 enforces LSP-compatible signatures on overrides. The parent
HTML_QuickForm_element::accept() declares two extra optional parameters
($required, $error), so the override in hiddenselect must accept them
too. Without this, loading the widget triggers a fatal error under
PHP 8.x.

Fixes #148
@shannah shannah merged commit b239e6e into master May 17, 2026
12 checks passed
@shannah shannah deleted the claude/fix-xataface-issue-148-ocw3N branch May 17, 2026 19:33
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.

PHP 8 fatal: HTML_QuickForm_hiddenselect::accept() signature incompatible with parent

2 participants