Making PHPStan happy
This commit is contained in:
parent
c5e607b969
commit
b0f8d4eb0f
|
@ -17,12 +17,15 @@ class BindEclLitePlugin implements \bhl_bind\BindPlugin
|
|||
function init(\mtgMetaInfo $meta, \Twig\Environment $twig)
|
||||
{
|
||||
$loader = $twig->getLoader();
|
||||
$loader->setPaths(
|
||||
array_merge(
|
||||
$loader->getPaths(),
|
||||
[__DIR__ . "/../tpl"]
|
||||
)
|
||||
);
|
||||
if($loader instanceof \Twig\Loader\FilesystemLoader)
|
||||
{
|
||||
$loader->setPaths(
|
||||
array_merge(
|
||||
$loader->getPaths(),
|
||||
[__DIR__ . "/../tpl"]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
//let's collect units we're responsible for
|
||||
foreach($meta->getUnits() as $u)
|
||||
|
|
Loading…
Reference in New Issue