Skip to content

Commit

Permalink
fixing wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Sep 9, 2024
1 parent 12042bf commit 53a9b74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.

This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).

## [9.1.3]

### Fixed
- Wrong condition for DI container caching.

## [9.1.2]

### Added
Expand Down Expand Up @@ -643,6 +648,7 @@ Init setup

[Unreleased]: https://github.com/infinum/eightshift-libs/compare/main...HEAD

[9.1.3]: https://github.com/infinum/eightshift-libs/compare/9.1.2...9.1.3
[9.1.2]: https://github.com/infinum/eightshift-libs/compare/9.1.1...9.1.2
[9.1.1]: https://github.com/infinum/eightshift-libs/compare/9.1.0...9.1.1
[9.1.0]: https://github.com/infinum/eightshift-libs/compare/9.0.2...9.1.0
Expand Down
2 changes: 1 addition & 1 deletion src/Main/AbstractMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private function getDiContainer(array $services): Container

$cacheFolder = $this->getCachedFolderPath();

if (!$cacheFolder) {
if (!empty($cacheFolder)) {
$builder->enableCompilation($cacheFolder, "{$file[0]}CompiledContainer");
}
}
Expand Down

0 comments on commit 53a9b74

Please sign in to comment.