Fabien Potencier c7940f89d1 bug #1830 String-cast in template_from_string (Tobion)
This PR was merged into the 1.x branch.

Discussion
----------

String-cast in template_from_string

Fixes #1829 caused by https://github.com/twigphp/Twig/pull/1807/files#diff-5e190f538c5c328c7473a5cfd3b7cd95R578

As twig allows many types in twig templates, e.g. array or traversable, we can do the same for string.
But we only take this approach for twig exposed function/filters etc, i.e. template code, but not core code.

Commits
-------

e1e3655 String-case in template_from_string
2015-09-15 07:16:37 +02:00
2015-09-13 18:56:37 +02:00
2015-09-13 19:17:07 +02:00
2015-09-13 19:17:07 +02:00

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP, released under the new BSD license (code
and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: http://twig.sensiolabs.org/documentation
Languages
PHP 99.9%