Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TwigComponent] Fix configuration namespace end with "\" #1705

Merged
merged 1 commit into from Apr 9, 2024

Conversation

cavasinf
Copy link
Contributor

@cavasinf cavasinf commented Apr 9, 2024

Q A
Bug fix? yes
New feature? no
License MIT

Fix the doc configuration about multi namespaces as the tree builder define.

if (!str_ends_with($namespace, '\\')) {
throw new InvalidConfigurationException(sprintf('The twig_component.defaults namespace "%s" is invalid: it must end in a "\"', $namespace));
}

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Apr 9, 2024
Copy link
Collaborator

@smnandre smnandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you!

@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Apr 9, 2024
@kbond
Copy link
Member

kbond commented Apr 9, 2024

Thank you @cavasinf.

@kbond kbond merged commit a3ce0ad into symfony:2.x Apr 9, 2024
1 check passed
@cavasinf cavasinf deleted the patch-1 branch April 9, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants