$filePath is possibly null which causes type error in case of adding file https://github.com/TYPO3-Headless/headless_dev_tools/blob/06629f43501e7c538bba65e07654cc25fc0e2d95/Classes/Xclass/RemoteResourceCollection.php#L28