Skip to content

Commit

Permalink
ContainerBuilder: fixed type of service
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 21, 2018
1 parent 0f9dc5d commit ca1089a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DI/ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public function complete(): void
$def->setSetup($setups);

} catch (\Exception $e) {
throw new ServiceCreationException("Service '$name' (type of $entity): " . $e->getMessage(), 0, $e);
throw new ServiceCreationException("Service '$name' (type of {$def->getType()}): " . $e->getMessage(), 0, $e);

} finally {
$this->currentService = null;
Expand Down

0 comments on commit ca1089a

Please sign in to comment.