We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af25396 commit 0c8a1c1Copy full SHA for 0c8a1c1
tests/TestKernel.php
@@ -59,8 +59,8 @@ public function getCacheDir(): string
59
$cacheDirectory = 'cache';
60
61
// create unique cache directory when custom config is provided
62
- if ($this->resourceServiceConfig !== null || $this->persistenceConfig !== null) {
63
- $cacheDirectory = '/cache/' . hash('sha256', implode('', ($this->resourceServiceConfig ?? []) + ($this->persistenceConfig ?? [])));
+ if (null !== $this->resourceServiceConfig || null !== $this->persistenceConfig) {
+ $cacheDirectory = '/cache/' . hash('sha256', serialize(($this->resourceServiceConfig ?? []) + ($this->persistenceConfig ?? [])));
64
}
65
66
return \sprintf('%s/tests/.kernel/' . $cacheDirectory, $this->getProjectDir());
0 commit comments