fix: change adminOld return type from string to string|array

The closure returned arrays when formData values were arrays (e.g.
jury_promoteur), but the PHP return type annotation was :string.
PHP 8.x enforces this strictly, causing a fatal TypeError in
jury-fieldset.php on add mode.
This commit is contained in:
Pontoporeia
2026-06-15 16:16:02 +02:00
parent d588ae004d
commit a5db81a73d
3 changed files with 14 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
# TODO
> Last updated: 2026-06-11
> Context: Removed overtype autosave (403 CSRF bug), replaced with explicit Save button above full-page editor
> Last updated: 2026-06-15
> Context: Fix FilePond CSRF token staleness caused by autosave token rotation
## Pending
@@ -12,6 +12,8 @@
## Completed
- [x] #filepond-csrf-stale Fix FilePond CSRF token going stale when autosave rotates it — headers are now functions that re-read meta tag on each request `(file-upload-filepond.js)`
- [x] #csp-media-iframe-fix Fix CSP `frame-ancestors 'none'` blocking PDF iframes — replaced `try_files` redirect with direct `fastcgi_pass` in `location = /media` so `add_header` CSP override survives internal nginx redirect `(nginx/xamxam.conf)`
- [x] #duration-migration Add migration to reintroduce `duration_value` and `duration_unit` columns + update views `(migrations/applied/040_duration_fields.sql)`