Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #3769 Updates CoreExtension::twig_constant to check for definitio…
…n first to avoid hard crash (Alex Henderson-Roche) This PR was merged into the 2.x branch. Discussion ---------- Updates CoreExtension::twig_constant to check for definition first to avoid hard crash The behaviour of PHP's constant() method has been updated after php/php-src#9905 was accepted and fixed in PHP 8.1 (and previously changed post PHP 8.0) . This PR prevents a fatal error in the case a constant is supplied that doesn't actually exist. Commits ------- 56b3122 Updates CoreExtension::twig_constant to check for definition first to avoid hard crash
- Loading branch information