Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twig 1.27+ support #294

Merged
merged 1 commit into from
Dec 25, 2016
Merged

Twig 1.27+ support #294

merged 1 commit into from
Dec 25, 2016

Conversation

SCIF
Copy link
Contributor

@SCIF SCIF commented Dec 25, 2016

Fixed some deprecations and limited min version of twig 1.27+. Should fix #291.Replaces #290.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2da74cf on SCIF:twig_127 into ** on rcrowe:master**.

@@ -105,7 +105,7 @@ public function get($path, array $data = [])
*/
protected function handleTwigError(Twig_Error $ex)
{
$templateFile = $ex->getTemplateFile();
$templateFile = $ex->getSourceContext()->getPath();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this possible for all exceptions?

@barryvdh barryvdh merged commit fda1efa into rcrowe:master Dec 25, 2016
@brunogaspar
Copy link
Contributor

This PR broke the package, at least for me.

Type error: Argument 1 passed to Twig_Loader_Chain::addLoader() must implement interface Twig_LoaderInterface, instance of TwigBridge\Twig\Loader given, called in /../app/vendor/twig/twig/lib/Twig/Loader/Chain.php on line 30

twig/twig: v1.30.0
rcrowe/TwigBridge: dev-master fda1efa

@barryvdh
Copy link
Collaborator

Rwveeted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FatalErrorException in Loader.php
4 participants