Releases: alisqi/TwigQI
Releases · alisqi/TwigQI
3.1.1 Leading backslash in FQN optional
Full Changelog: v3.1.0...v3.1.1
v3.1.0 Support imported macros
- Feature: inspections for macro calls now support imports: #9
v3.0.1
- Bugfix: runtime type assertions support traits
- Documentation: overhaul README (by @ThomasLandauer - thanks!)
v3.0.0 Use Psr\Log for reporting inspection results
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
v2.0 Enum case inspections, PHP >= 8.2
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
Objects with __toString magic method are valid string-typed values
{% set foo %}Hello{% endset %}
{% types {foo: 'string'} %}
Actually, $context['foo'] instanceof Twig\Markup.