`usort($manifest['versions'] ?? [], ...)` worked in PHP 7 but is a fatal error in PHP 8 — usort requires its first arg by reference and the null-coalesce operator produces an rvalue, not a variable. The existing versions.php didn't trigger it because it sorts $manifest['versions'] directly. Fixed launcher.php to guard with an isset/is_array check and only sort when there's actually a versions array. Triggered by clicking "Définir" in the new Launcher page → 500 page. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
8.1 KiB
8.1 KiB