#109216DatabaseRecordLinkBuilder in some situations builds defect links due to a missing 0-to-null conversion since #102775
Description
For #102775 in https://review.typo3.org/c/Packages/TYPO3.CMS/+/82364/8/typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php#85 the check on 0 was converted to a null check because the methods were type-hardened.
So far so good, but on line 80 you set it still to 0, making the null check fail. This leads to defect but still generated links in some cases that previosuly worked as intended (this is: were correctly not generated).
The explicit 0 assignments not coming from a method return must consistently converted to null assignments as well.