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

Fix deprecated twig filter syntax #631

Merged
merged 3 commits into from
Aug 27, 2015
Merged

Fix deprecated twig filter syntax #631

merged 3 commits into from
Aug 27, 2015

Conversation

jrattue
Copy link
Contributor

@jrattue jrattue commented Aug 25, 2015

With the release of Twig 1.21, deprecated calls in twig are being logged. Noticed this one.

@makasim
Copy link
Collaborator

makasim commented Aug 25, 2015

It is not available since 1.0, right? So we have to raised a minimum twig version, Which one should it be?

@@ -27,7 +27,7 @@ public function __construct(CacheManager $cacheManager)
public function getFilters()
{
return array(
'imagine_filter' => new \Twig_Filter_Method($this, 'filter'),
new \Twig_SimpleFunction('imagine_filter', array($this, 'filter')),
Copy link
Contributor

Choose a reason for hiding this comment

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

this is wrong. Should be \Twig_SimpleFilter instead

@Koc
Copy link
Contributor

Koc commented Aug 25, 2015

@makasim it is available since 1.12.0 twigphp/Twig@1918ede

@makasim
Copy link
Collaborator

makasim commented Aug 26, 2015

@Koc thanks, @Rattler3 Could you update a twig section in composer json, saying that 1.12.0 is minimum version we require.

@jrattue
Copy link
Contributor Author

jrattue commented Aug 26, 2015

@makasim I left twig requiring less than version 2 as this has not yet been released and could require more amends.

@makasim
Copy link
Collaborator

makasim commented Aug 26, 2015

@jrattue
Copy link
Contributor Author

jrattue commented Aug 26, 2015

@makasim I have added a note about the version needing to be greater than 1.12

makasim added a commit that referenced this pull request Aug 27, 2015
Fix deprecated twig filter syntax
@makasim makasim merged commit 91ed657 into liip:master Aug 27, 2015
@makasim
Copy link
Collaborator

makasim commented Aug 27, 2015

Thanks

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.

3 participants