Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

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.

Testing Instructions

Run php cli/joomla.php weblinks:sync-csv --action=export --file.

Expected result

Error message: The "--file" option requires a value.

Actual result

TypeError: ...::handleExport(): Argument #2 ($filePath) must be of type string, null given.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment