Releases: memio/twig-template-engine
Releases · memio/twig-template-engine
3.0.1: Fixed templates
3.0.0: PHP 7.2 requirement, PHP 8 and phpspec 7 support
- dropped support for PHP < 7.2
- added support for PHP 8
- added support for phpspec 7
Fixed nullable return types
Thanks to @sjokki who:
- Added return type template for interface methods, making
pure_virtual.twig
similar tomethod.twig
- Filtered the namespace of method return types, making the return type filtered in the same way as method argument types
- Checked for nullable when filtering namespaces, making
filter_namespace()
was compatible with nullable types
Before:
?Vendor\Project\MyClass became just MyClass
?DateTime stayed ?DateTime
After:
?Vendor\Project\MyClass becomes ?MyClass
?DateTime stays ?DateTime
PHP 7.2 support
Added support for PHP 7.2, thanks to @roukmoute
BC break: Object has be renamed to Objekt, has it is a reserved keyword.
Released v2.0.0
Released v2.0.0-alpha3
Allowed Twig v2
- added support for Twig 2
Allowed Twig v2
- added support for Twig 2
Fixed style
- fixed method opening curly brace
- fixed property collection
Fixed missing empty line
- fixed missing empty line abovr namespace
Updated dependencies
- added support for PHP 7