Skip to content

[ticket/15190] Consolidate validation methods in metadata manager - #7124

Open
ECYaz wants to merge 1 commit into
phpbb:masterfrom
ECYaz:ticket/15190
Open

ECYaz wants to merge 1 commit into
phpbb:masterfrom
ECYaz:ticket/15190

Conversation

@ECYaz

@ECYaz ECYaz commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Takes over #4807 by javiexin, rebased on current master and trimmed to the ticket: one validate() entry point that loads composer.json itself, with the single purpose validators made protected (the original docblocks already announced that for 4.0). The version-check rework from the old PR is left out.

Checklist:

  • Correct branch: master for new features; 3.3.x for fixes
  • Tests pass
  • Code follows coding guidelines: master and 3.3.x
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB-15190

Route every metadata validation through validate(), driven by a static map
of composed validations, validation methods and field patterns. validate()
loads composer.json itself, so it no longer needs a prior get_metadata()
call. The single purpose validators become protected and validate_enable()
is replaced by the enable composition.

PHPBB-15190
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