From f649a71b74f8b87cee2e81873be65f8675114684 Mon Sep 17 00:00:00 2001 From: Jan Skrasek Date: Mon, 4 Feb 2019 12:49:23 +0100 Subject: [PATCH] bridge/nette: recastring service name to string as it may be a numeric-string [closes #333] --- src/Bridges/NetteDI/DIRepositoryFinder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Bridges/NetteDI/DIRepositoryFinder.php b/src/Bridges/NetteDI/DIRepositoryFinder.php index d98acbd6..d352a50a 100644 --- a/src/Bridges/NetteDI/DIRepositoryFinder.php +++ b/src/Bridges/NetteDI/DIRepositoryFinder.php @@ -41,6 +41,7 @@ public function beforeCompile(): ?array $repositories = []; $repositoriesMap = []; foreach ($types as $serviceName => $serviceDefinition) { + $serviceName = (string) $serviceName; if ($serviceDefinition instanceof \Nette\DI\Definitions\FactoryDefinition) { $serviceDefinition ->getResultDefinition()