Skip to content

Commit 7031ea5

Browse files
committed
Fix getContainerCachePath call error
1 parent 528ef7b commit 7031ea5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
### master
22

3+
- Fix `You must call introspect() before getContainerCachePath()`
4+
35
### [3.0.0](../../compare/2.0.0...3.0.0) - 2022-11-22
46

57
- [BC Break] Rename namespace `steevanb\ContainerIntrospection` to `Steevanb\ContainerIntrospection`

src/ContainerIntrospectionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ protected function introspectCache(): self
352352

353353
$this->cachePath = dirname($fileName);
354354

355-
$cacheFiles = glob($this->getContainerCachePath() . '/*');
355+
$cacheFiles = glob($this->cachePath . '/*');
356356
if (is_array($cacheFiles) === false) {
357357
throw new ContainerIntrospectionException('Container cache files not found.');
358358
}

0 commit comments

Comments
 (0)