TypeError thrown

Return value of Ossum\Content::getSocialImageURL() must be of the type string, null returned