Skip to content

Commit

Permalink
bridge/nette: recastring service name to string as it may be a numeri…
Browse files Browse the repository at this point in the history
…c-string [closes #333]
  • Loading branch information
hrach committed Feb 4, 2019
1 parent e37c87e commit f649a71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Bridges/NetteDI/DIRepositoryFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f649a71

Please sign in to comment.