User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
The --file option of weblinks:sync-csv is declared as InputOption::VALUE_OPTIONAL. When it is given without a value (--file or -f), Symfony returns null instead of the default, and passing null to the string $filePath parameter of handleExport() / handleImport() causes a TypeError.
The option is now VALUE_REQUIRED (the default still applies when the option is omitted), so Symfony shows a proper error message when the value is missing.
Run php cli/joomla.php weblinks:sync-csv --action=export --file.
Error message: The "--file" option requires a value.
TypeError: ...::handleExport(): Argument #2 ($filePath) must be of type string, null given.
None