Ok, seems to be an single "=".
To avoid confusing people who read this and might think it's a mistake, please split it into two rows:

    $versions = self::getVersions($uid, $filename);
    if ($versions) {