fix: DockerSecretsResolver - don't normalize absolute paths like /var/www/html/...
Some checks failed
Deploy Application / deploy (push) Has been cancelled

This commit is contained in:
2025-11-24 21:28:25 +01:00
parent 4eb7134853
commit 77abc65cd7
1327 changed files with 91915 additions and 9909 deletions

View File

@@ -109,9 +109,9 @@ final readonly class ExceptionMetricsCollector
private function getMetricValue(CacheKey $cacheKey): int
{
$result = $this->cache->get($cacheKey);
$item = $result->getFirstHit();
$item = $result->getItem($cacheKey);
if ($item === null) {
if (!$item->isHit) {
return 0;
}
@@ -135,9 +135,9 @@ final readonly class ExceptionMetricsCollector
{
$cacheKey = CacheKey::fromString(self::CACHE_PREFIX . 'execution_times');
$result = $this->cache->get($cacheKey);
$item = $result->getFirstHit();
$item = $result->getItem($cacheKey);
$times = $item !== null && is_array($item->value) ? $item->value : [];
$times = $item->isHit && is_array($item->value) ? $item->value : [];
$times[] = $executionTimeMs;
// Keep only last 1000 execution times
@@ -161,9 +161,9 @@ final readonly class ExceptionMetricsCollector
{
$cacheKey = CacheKey::fromString(self::CACHE_PREFIX . 'execution_times');
$result = $this->cache->get($cacheKey);
$item = $result->getFirstHit();
$item = $result->getItem($cacheKey);
if ($item === null || !is_array($item->value)) {
if (!$item->isHit || !is_array($item->value)) {
return 0.0;
}