I have the following:
use Twig\Loader\Array as Twig_Loader_Array;
I am hoping to use TWIG in my custom framework, and my autoloader isn't quite smart enough to load twig stuff, so I have to help it out.
Only problem is, the above line spits out:
Parse error: syntax error, unexpected 'Array' (T_ARRAY), expecting identifier (T_STRING) in...
Uhhhh.. What?
Is it really thinking that the ...\Array
bit is trying to create an array???
How can I get around this? I can't change folder names because i'll break twig if I do.