Skip to content

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

Latest
Compare
Choose a tag to compare
@drjayvee drjayvee released this 18 Dec 13:23

Objects with __toString magic method are valid string-typed values

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

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