Skip to content

Releases: memio/twig-template-engine

3.0.1: Fixed templates

14 Aug 21:23
Compare
Choose a tag to compare

3.0.0: PHP 7.2 requirement, PHP 8 and phpspec 7 support

13 Aug 12:30
Compare
Choose a tag to compare
  • dropped support for PHP < 7.2
  • added support for PHP 8
  • added support for phpspec 7

Fixed nullable return types

06 Feb 09:52
2853280
Compare
Choose a tag to compare

Thanks to @sjokki who:

  • Added return type template for interface methods, making pure_virtual.twig similar to method.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

02 Jan 09:48
5cdb20e
Compare
Choose a tag to compare

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

25 Aug 08:40
Compare
Choose a tag to compare
Released v2.0.0-alpha3

Allowed Twig v2

25 Aug 08:39
Compare
Choose a tag to compare
Allowed Twig v2 Pre-release
Pre-release
  • added support for Twig 2

Allowed Twig v2

12 Jan 12:06
Compare
Choose a tag to compare
  • added support for Twig 2

Fixed style

29 Sep 17:10
Compare
Choose a tag to compare
Fixed style Pre-release
Pre-release
  • fixed method opening curly brace
  • fixed property collection

Fixed missing empty line

27 Sep 14:02
Compare
Choose a tag to compare
  • fixed missing empty line abovr namespace

Updated dependencies

01 Dec 16:58
Compare
Choose a tag to compare
  • added support for PHP 7