Releases: squirrelphp/twig-php-syntax
Releases · squirrelphp/twig-php-syntax
Add YieldReady attributes
Add missing type hints
The missing type hints lead to deprecation notices about possibly upcoming type hints in Twig.
Avoid PHP warnings for break & continue
Our previous mechanism of doing a "lookbehind" with twig lead to array key notices/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: Check if loop exists for continue
Otherwise the variable might not be defined and lead to a PHP notice.
Lower minimum PHP version
Make this library work with PHP >= 7.2.5 instead of only supporting PHP 7.4 and higher.
Add PHP conversion functions
- intval
- floatval
- strval
- boolval
v1.3
Add more tests known from PHP
Add the variable type tests from PHP as twig tests, and adjust documentation.
Documentation & config improvements
Corrected small details in the documentation to make it clearer, and improved the travis and code quality configuration to make it more future proof.