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

Fix test suite #453

Merged
merged 6 commits into from
Feb 12, 2025
Merged

Fix test suite #453

merged 6 commits into from
Feb 12, 2025

Conversation

bytestream
Copy link
Contributor

No description provided.

// "Since twig/twig 3.10: The "Twig\Extension\EscaperExtension::addSafeClass()" method is deprecated, use the "Twig\Runtime\EscaperRuntime::addSafeClass()" method instead."
if (class_exists(EscaperRuntime::class)) {
$twig->getRuntime(EscaperRuntime::class)->addSafeClass($safeClass, $strategy);
} else {
$twig->getExtension(EscaperExtension::class)->addSafeClass($safeClass, $strategy);
}
$twig->getExtension(EscaperExtension::class)->addSafeClass($safeClass, $strategy);
Copy link
Contributor Author

@bytestream bytestream Feb 12, 2025

Choose a reason for hiding this comment

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

Composer requires twig 3.12+, so I have removed the old code. The comment was giving a phpcs error...

@bytestream bytestream mentioned this pull request Feb 12, 2025
@barryvdh barryvdh merged commit 20a3e79 into rcrowe:master Feb 12, 2025
8 checks passed
@bytestream bytestream deleted the tests branch February 12, 2025 14:30
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.

2 participants