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

Appearance settings

Tags: squirrelphp/twig-php-syntax

Tags

v2.0

Toggle v2.0's commit message
Remove === and !== when using Twig >=3.23

Twig provides these operators natively now, so our own implementation is
not needed anymore.

v1.13

Toggle v1.13's commit message
Replace internal class used from Twig

v1.12

Toggle v1.12's commit message
Make library fully compatible with Twig 3.21

v1.11

Toggle v1.11's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request to fix incompatibility with Twig v3.21

Redefines ForeachTokenParser::parseAssignmentExpression slightly to account for new protected function of the same name.

v1.10

Toggle v1.10's commit message
Add ForElseNode to avoid deprecation notice in Twig 3.19+

v1.9

Toggle v1.9's commit message
Reduce to PHP 8 as minimum version to match twig

v1.8

Toggle v1.8's commit message
Add YieldReady attributes

v1.7

Toggle v1.7's commit message
Add missing type hints

v1.6

Toggle v1.6's commit message
Avoid PHP warnings for break & continue

Our previous mechanism of doing a "lookbehind" with twig
lead to array key warnings. Instead we now look ahead, which
is also valid from the perspective of twig, to determine if
more loops are ending than closing, and for break if enough
loops are ending to break out of.

v1.5.1

Toggle v1.5.1's commit message
Check if loop exists for continue

Otherwise the variable might not be defined and
lead to a PHP notice.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.