Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ protected function _loadScopedData()
}
$this->_scopePriorityScheme[] = $scope;

$cacheId = implode('|', $this->_scopePriorityScheme) . "|" . $this->_cacheId;
// Sort scopes alphabetically to ensure cache ID is deterministic
// regardless of processing order (fixes mismatch with compile-time generation)
$sortedScheme = array_values($this->_scopePriorityScheme);
sort($sortedScheme);
$cacheId = implode('|', $sortedScheme) . "|" . $this->_cacheId;
$configData = $this->configLoader->load($cacheId);

if ($configData) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ public function write(array $scopes): void
if (false === in_array($scope, $this->scopePriorityScheme, true)) {
$this->scopePriorityScheme[] = $scope;
}
$cacheId = implode('|', $this->scopePriorityScheme) . "|" . $this->cacheId;
// Sort scopes alphabetically to ensure cache ID is deterministic
// regardless of processing order (fixes mismatch with runtime loading)
$sortedScheme = array_values($this->scopePriorityScheme);
sort($sortedScheme);
$cacheId = implode('|', $sortedScheme) . "|" . $this->cacheId;
[
$virtualTypes,
$this->scopePriorityScheme,
Expand Down