fix: remove stale lowercase whitepaper key before writing updated whitePaper
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 21s

toStructure()->toArray() returns lowercase keys, so reading 'whitepaper'
then writing 'whitePaper' left both keys in the array, producing duplicate
YAML keys on re-encode. unset the lowercase key first to keep the file clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-06-01 17:16:08 +02:00
parent 7ceb07f2b0
commit 5d2e78367e

View file

@ -77,6 +77,7 @@ return [
if (!in_array($pageUuid, $whitePapers, true)) {
$whitePapers[] = $pageUuid;
}
unset($entries[$existingIndex]['whitepaper']);
$entries[$existingIndex]['whitePaper'] = $whitePapers;
} else {
$entries[] = [