Skip to content

Releases: alisqi/TwigQI

3.1.1 Leading backslash in FQN optional

27 Aug 09:44

Choose a tag to compare

v3.1.0 Support imported macros

07 Jul 13:38

Choose a tag to compare

  • Feature: inspections for macro calls now support imports: #9

v3.0.1

02 Jul 07:36
db7a7f1

Choose a tag to compare

  • Bugfix: runtime type assertions support traits
  • Documentation: overhaul README (by @ThomasLandauer - thanks!)

v3.0.0 Use Psr\Log for reporting inspection results

02 Apr 10:01

Choose a tag to compare

This version adds flexibility by depending on Psr\Log\LoggerInterface for reporting inspection results instead of using PHP's built-in trigger_error().

Symfony integration is significantly improved thanks to this change. See #2 and the documentation for instructions and an example.

Since the Extension and all inspection classes all received a new argument, this release breaks required a major version bump.

v2.0.1

27 Feb 10:59

Choose a tag to compare

Fix #4

v2.0 Enum case inspections, PHP >= 8.2

27 Feb 10:34

Choose a tag to compare

This release adds an inspection for enum cases: enum('\\Some\\Enum').Invalid.

The minimum required PHP version was upgraded from 8.1 to 8.2, hence the major version increment.

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

18 Dec 13:23

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

Choose a tag to compare

Add inspection for positional macro arguments after named ones

v1.0.6

03 Dec 08:54

Choose a tag to compare

Inspect constant() tests (not just function calls)

v1.0.5

27 Nov 08:28

Choose a tag to compare

Bugfix release: dot operations are validated on nullable types