You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has method public function getSource($name) but should be named public function getSourceContext($name) actually
or PHP will throw an error:
Class MtHaml\Support\Twig\Loader contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Twig_LoaderInterface::getSourceContext)
classLoaderimplements \Twig_LoaderInterface, \Twig_ExistsLoaderInterface
{
...
publicfunction getSource($name) // <------ SHOULD BE getSourceContext
{
...
}
...
interfaceTwig_LoaderInterface
{
...
/**
* Returns the source context for a given template logical name.
*
* @param string $name The template logical name
*
* @returnTwig_Source
*
* @throws Twig_Error_LoaderWhen$name is not found
*/
publicfunction getSourceContext($name); // <------ NEEDS THIS NAME
{
...
}
...
The text was updated successfully, but these errors were encountered:
ZaDarkSide
changed the title
MtHaml is not compatible with Twig 2.x
MtHaml Twig Loader is not compatible with Twig 2.x
Feb 2, 2017
Class MtHaml\Support\Twig\Loader.php
Has method
public function getSource($name)
but should be namedpublic function getSourceContext($name)
actuallyor PHP will throw an error:
Class MtHaml\Support\Twig\Loader contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Twig_LoaderInterface::getSourceContext)
But Twig class expects in Twig\LoaderInterface.php:
The text was updated successfully, but these errors were encountered: