Skip to content

Commit

Permalink
exclude empty path
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Jun 5, 2017
1 parent f51b150 commit 432984f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private static function getContainerBuilder(Configuration $configuration): DICon
$containerBuilder->writeProxiesToFile(true, $configuration->getProxiesPath());
}

if ($configuration->getCompilationPath()) {
if (!empty($configuration->getCompilationPath())) {
$containerBuilder->compile(
sprintf('%s/CompiledContainer.php', rtrim($configuration->getCompilationPath(), ' /'))
);
Expand Down

0 comments on commit 432984f

Please sign in to comment.