TypeError thrown

Return value of PressReleases\Services\ShortCodes\PressReleaseImages::register() must be of the type string or null, none returned