#78782RTE Link wizard is broken if a file is selected
Description
After a link to a file is created it is not possible to open the link wizard.
PHP Catchable fatal error: Object of class TYPO3\CMS\Core\Resource\File could not be converted to string in /foo/vendor/typo3/cms/typo3/sysext/core/Classes/Resource/ResourceFactory.php on line 470