Skip to content

Releases: memio/twig-template-engine

v3.0.3: Fixed Model v3 usage

05 Feb 07:20
2a9e32d

Choose a tag to compare

Fully update templates and Type extension to work with memio/model v3 changes:

  • Public properties instead of getter methods
  • Type stored as Type object instead of string

PHP 8.0, twig 3

30 Jan 13:18
76b87dd

Choose a tag to compare

  • dropped support for PHP < 8.0
  • dropped support for twig < 3.0

Dockerised dev environment

30 Jan 13:18
aa98551

Choose a tag to compare

  • setup Github Actions
  • changed tooling from scripts to Makefile
  • installed phpstan as a dev depdendency
  • installed swiss-knife as a dev depdendency
  • installed rector as a dev depdendency
  • upgraded PHP CS fixer to v2.19.3
  • dockerized for local development

3.0.1: Fixed templates

14 Aug 21:23

Choose a tag to compare

  • fixed templates

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

13 Aug 12:30

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

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

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

Choose a tag to compare

Released v2.0.0-alpha3

Allowed Twig v2

25 Aug 08:39

Choose a tag to compare

Allowed Twig v2 Pre-release
Pre-release
  • added support for Twig 2

Allowed Twig v2

12 Jan 12:06

Choose a tag to compare

  • added support for Twig 2