Skip to content

Add Opt-In Runtime Validation of Filter Chain Specifications - #267

Merged
gsteel merged 1 commit into
laminas:3.4.xfrom
gsteel:runtime-factory-validation
Nov 15, 2025
Merged

Add Opt-In Runtime Validation of Filter Chain Specifications#267
gsteel merged 1 commit into
laminas:3.4.xfrom
gsteel:runtime-factory-validation

Conversation

@gsteel

@gsteel gsteel commented Nov 14, 2025

Copy link
Copy Markdown
Member

This will be useful in downstream libs - it is too late to introduce runtime spec validation here, but at least consumers will be able to.

This is specifically for input-filter.

See further discussion at laminas/laminas-inputfilter#149

This will be useful in downstream libs - it is too late to introduce runtime spec validation here, but at least consumers will be able to.

This is specifically for `input-filter`.

See further discussion at laminas/laminas-inputfilter#149

Signed-off-by: George Steel <george@net-glue.co.uk>
@gsteel gsteel added this to the 3.4.0 milestone Nov 14, 2025
@gsteel
gsteel requested review from a team November 14, 2025 17:19
@gsteel gsteel added Enhancement QA Quality assurance tasks such as static analysis improvements labels Nov 14, 2025
@gsteel
gsteel merged commit 5aac401 into laminas:3.4.x Nov 15, 2025
15 checks passed
@gsteel
gsteel deleted the runtime-factory-validation branch November 15, 2025 21:02
@gsteel gsteel self-assigned this Nov 15, 2025
gsteel added a commit to gsteel/laminas-validator that referenced this pull request Nov 15, 2025
As per the PR in `laminas-filter`: laminas/laminas-filter#267

This patch adds a static method to the validator chain to allow consumers to assert chain specs are valid.

Signed-off-by: George Steel <george@net-glue.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement QA Quality assurance tasks such as static analysis improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants