Skip to content

Deprecate Twig\Sandbox\SecurityPolicy::setStrict()#4818

Open
fabpot wants to merge 1 commit into
twigphp:4.xfrom
fabpot:policy-set-strict-deprecation
Open

Deprecate Twig\Sandbox\SecurityPolicy::setStrict()#4818
fabpot wants to merge 1 commit into
twigphp:4.xfrom
fabpot:policy-set-strict-deprecation

Conversation

@fabpot

@fabpot fabpot commented May 25, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@stof

stof commented May 25, 2026

Copy link
Copy Markdown
Member

In 4.0, I would only deprecate ->setStrict(false), keeping the method non-deprecated for now, to make it easier to support 3.x and 4.0 at the same time in a deprecation-free way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants