Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Aug 30, 2021
1 parent 2b9ec7b commit a4b9d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Exception/NotFoundException.php
Expand Up @@ -17,8 +17,8 @@ final class NotFoundException extends Exception implements NotFoundExceptionInte
public function __construct(string $id, array $buildStack = [])
{
$this->id = $id;
$buildStackMessage = $buildStack ? 'while building ' . implode(' -> ', $buildStack) : '';
parent::__construct(sprintf('No definition or class found for "%s"%s.', $id, $buildStackMessage));
$buildStackMessage = $buildStack ? ' while building ' . implode(' -> ', array_keys($buildStack)) : '';
parent::__construct(sprintf('No definition or class found for %s%s.', $id, $buildStackMessage));
}

public function getId(): string
Expand Down

0 comments on commit a4b9d7a

Please sign in to comment.