Skip to content

Commit 5483ff2

Browse files
committed
Fix issue with Twig
"Cannot use object of type UserFrosting\UniformResourceLocator\Resource as array in Filesystem.php"
1 parent a9ff4c7 commit 5483ff2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/sprinkles/core/src/ServicesProvider/ServicesProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ public function register(ContainerInterface $container)
694694
$locator = $c->locator;
695695

696696
$templatePaths = $locator->getResources('templates://');
697-
$view = new Twig($templatePaths);
697+
$view = new Twig(array_map('strval', $templatePaths));
698698
$loader = $view->getLoader();
699699

700700
// Add Sprinkles' templates namespaces

0 commit comments

Comments
 (0)