HomePhorge

fix PHP 8 "strlen(null)" when moving paths with missing options

Description

fix PHP 8 "strlen(null)" when moving paths with missing options

Summary:
Running ./bin/repository move-paths without specifying --from nor --to
leads to the PHP 8 error about strlen() not accepting null parameters.

Test Plan: Running ./bin/repository move-paths without --from/--to (shows a proper error)

Reviewers: O1 Blessed Committers, speck, valerio.bozzolan

Reviewed By: O1 Blessed Committers, speck, valerio.bozzolan

Subscribers: aklapper, speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25484

Details

Provenance
Jean Guyomarc'hAuthored on Feb 12 2024, 2:04 AM
Valerio BozzolanCommitted on Feb 12 2024, 2:05 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPf81e821abf2b: Mark manually created Diffs as new objects to fix empty Feed transaction entries
Branches
Unknown
Tags
Unknown

Event Timeline