Skip to content

Commit

Permalink
Merge pull request #334 from pavelmlejnek/v3.0
Browse files Browse the repository at this point in the history
Fixed non-string serviceName (closes #333)
  • Loading branch information
hrach authored Feb 2, 2019
2 parents 6fc2d78 + 735f489 commit d05c147
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 @@ -44,6 +44,7 @@ public function beforeCompile()
$serviceDefinition->addSetup('setModel', [$this->extension->prefix('@model')]);
$class = $serviceDefinition->getClass();
assert($class !== null);
$serviceName = (string) $serviceName;
$name = $this->getRepositoryName($serviceName, $serviceDefinition);
$repositories[$name] = $class;
$repositoriesMap[$class] = $serviceName;
Expand Down

0 comments on commit d05c147

Please sign in to comment.