fix: remove stale lowercase whitepaper key before writing updated whitePaper
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 21s
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:
parent
7ceb07f2b0
commit
5d2e78367e
1 changed files with 1 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ return [
|
|||
if (!in_array($pageUuid, $whitePapers, true)) {
|
||||
$whitePapers[] = $pageUuid;
|
||||
}
|
||||
unset($entries[$existingIndex]['whitepaper']);
|
||||
$entries[$existingIndex]['whitePaper'] = $whitePapers;
|
||||
} else {
|
||||
$entries[] = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue