kriswallsmith / assetic

Asset Management for PHP
MIT License
3.75k stars 555 forks source link

TokenStream getFilename() method is deprecated #879

Open aturki opened 6 years ago

aturki commented 6 years ago

AsseticTokenParser.php still relies on getFilename() method (L116) which is not available anymore

Steps to reproduce: 1- Use a bad token in any TWIG file in a symfony projet (e.g. git conflict header) 2- Run app/console assetic:dump

Error: Attempted to call an undefined method named "getFilename" of class "Twig_TokenStream".

davividal commented 6 years ago

This issue was solved by https://github.com/kriswallsmith/assetic/pull/845 . I just faced this issue and was able to solve it using this PR.

LukeTowers commented 4 years ago

Assetic lives on at https://github.com/assetic-php/assetic & under assetic/framework on Packagist. We've just released the 2.0 release that addresses a number of existing issues and dependency updates, see https://github.com/assetic-php/assetic/releases/tag/v2.0.0 for more information! Please try it out and let us know if you have any issues!