Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[TwigBundle] Fix default value of strict_variables#9050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:2.7fromyceruto:patch-5
Jan 13, 2018

Conversation

@yceruto
Copy link
Member

@javiereguiluzjaviereguiluz added this to the2.7 milestoneJan 13, 2018
@javiereguiluz
Copy link
Member

Thank you Yonel.

@javiereguiluzjaviereguiluz merged commit3888217 intosymfony:2.7Jan 13, 2018
javiereguiluz added a commit that referenced this pull requestJan 13, 2018
This PR was merged into the 2.7 branch.Discussion----------[TwigBundle] Fix default value of strict_variablesSeehttps://github.com/symfony/symfony/blob/d78a98d793c2846d6decbff652d63f981e4f32f4/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php#L177However, I'm proposing revert it since 4.1 and fix it inside the configuration section, see#9049Commits-------3888217 Fix default value of strict_variables
@ycerutoyceruto deleted the patch-5 branchJanuary 13, 2018 13:39
fabpot added a commit to symfony/symfony that referenced this pull requestFeb 6, 2018
…ebug" as default value of "strict_variable" (yceruto)This PR was merged into the 4.1-dev branch.Discussion----------[TwigBundle] Deprecating "false" in favor of "kernel.debug" as default value of "strict_variable"| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | ->http://symfony.com/doc/current/reference/configuration/twig.html#strict-variables>**strict_variables**> **type**: boolean **default**: `'%kernel.debug%'`Nope, really it's `false` by default:https://github.com/symfony/symfony/blob/1df45e43563a37633b50d4a36478090361a0b9de/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php#L130Fixing it insymfony/symfony-docs#9050, but yes `'%kernel.debug%'` is a better default value, the [TwigBundle recipe](https://github.com/symfony/recipes/blob/bf2148f9f1fe5af7e19c3145b6f7246c6cabb3a5/symfony/twig-bundle/3.3/config/packages/twig.yaml#L4:) affirms that:```yamltwig:    # ...    strict_variables: '%kernel.debug%'```So yeah, it definitely looks like it should be the default value, wdyt?Commits-------922878e Deprecating "false" as default value of "strict_variable" under Twig configuration
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

3 participants

@yceruto@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp