From 15745d42b779ad14efde2932ab116f45eee39246 Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:11:04 +0100 Subject: Upgrade code to php 8.1 (#6748) * revert Fix code indentation Fix code Upgrade code to php 8.1 * fix remarques * code review * code review * code review * Apply suggestions from code review * code review * Fixes * Many remainging updates of array syntax * Lost case 'reading-list' * Uneeded PHPDoc --------- Co-authored-by: Luc Sanchez Co-authored-by: Alexandre Alapetite --- cli/export-zip-for-user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/export-zip-for-user.php') diff --git a/cli/export-zip-for-user.php b/cli/export-zip-for-user.php index 304acc392..e030274d2 100755 --- a/cli/export-zip-for-user.php +++ b/cli/export-zip-for-user.php @@ -33,11 +33,11 @@ $number_entries = $cliOptions->maxFeedEntries; $exported_files = []; // First, we generate the OPML file -list($filename, $content) = $export_service->generateOpml(); +[$filename, $content] = $export_service->generateOpml(); $exported_files[$filename] = $content; // Then, labelled and starred entries -list($filename, $content) = $export_service->generateStarredEntries('ST'); +[$filename, $content] = $export_service->generateStarredEntries('ST'); $exported_files[$filename] = $content; // And a list of entries based on the complete list of feeds @@ -46,7 +46,7 @@ $exported_files = array_merge($exported_files, $feeds_exported_files); // Finally, we compress all these files into a single Zip archive and we output // the content -list($filename, $content) = $export_service->zip($exported_files); +[$filename, $content] = $export_service->zip($exported_files); echo $content; invalidateHttpCache($username); -- cgit v1.2.3