Fix PHP 8.1 "strlen(null)" exception when using Diffusion 'Compare'
Summary:
The method 'getSymbolicCommit()' can return null, and that value is not passed to strlen() anymore.
Closes T16297
Test Plan:
Visit the Diffusion page 'Compare' page without inputs, no warnings anymore from Dark console:
http://phorge.localhost/diffusion/1/compare/
Visit all the Diffusion page 'Compare' page of all your branches, they still work:
http://phorge.localhost/diffusion/1/branches/master/
(e.g. tested with branches 'master', 'devops', 'weblate', 'crashtest')
Compare two real branches like 'master' and 'test' or whatever, from this page, and it still works:
http://phorge.localhost/diffusion/1/compare/
Invert the branches. It still works.
Reviewers: O1 Blessed Committers, aklapper
Reviewed By: O1 Blessed Committers, aklapper
Subscribers: aklapper, tobiaswiese, Matthew, Cigaryno
Maniphest Tasks: T16297
Differential Revision: https://we.phorge.it/D26422