terminal42/contao-NamespaceClassLoader

Undefined constant self

Closed this issue · 4 comments

ausi commented

To fix Use of undefined constant self - assumed 'self' in …\NamespaceClassLoader.php on line 86 the line

return array_map(array(self, 'addContaoRoot'), $path);
should probably be replaced with:

return array_map(array(__CLASS__, 'addContaoRoot'), $path);

Fixed in 84ad023.

ausi commented

Thank you for the fix! 🎉

Is it possible to get version 1.0.3 pushed to the ER2 too?

I'll take care.

Done, sorry I missed that one. Let me know if it's not working :)