Skip to content

Releases: alisqi/TwigQI

v1.0.8: Objects with `__toString` magic method are valid `string`-typed values

18 Dec 13:23
Compare
Choose a tag to compare

Objects with __toString magic method are valid string-typed values

{% set foo %}Hello{% endset %}
{% types {foo: 'string'} %}

Actually, $context['foo'] instanceof Twig\Markup.

v1.0.7

12 Dec 13:29
Compare
Choose a tag to compare

Add inspection for positional macro arguments after named ones

v1.0.6

03 Dec 08:54
Compare
Choose a tag to compare

Inspect constant() tests (not just function calls)

v1.0.5

27 Nov 08:28
Compare
Choose a tag to compare

Bugfix release: dot operations are validated on nullable types

v1.0.4

21 Nov 13:22
Compare
Choose a tag to compare

This release supports and requires Twig ~3.15.

No functional changes have been made.

v1.0.3

21 Nov 13:21
Compare
Choose a tag to compare

Security fix

v1.0.2

21 Nov 10:53
Compare
Choose a tag to compare

This release adds one new feature, namely support for key and value types in for loops:

{% types {errors: 'iterable<string, \\Exception>'} %}

{% for name, error in errors %}
  {# automatic {% types {name: 'string', error: '\\Exception'} %} #}
  {{ name.bad }}  {# Error #}
  {{ error.bad }} {# Error #}
{% endfor %}

v1.0.1

28 Oct 11:02
Compare
Choose a tag to compare
  • Bug fix: apply tag caused an Exception

First release: 1.0.0

28 Oct 10:43
Compare
Choose a tag to compare

This release marks the conclusion of the first iteration of this tool. 🥳

I've chosen v1.x instead of v0.x to show the tool is ready for use. In fact, it's running in AlisQI's app's main branch (closed source), both in development as well as during CI.