='); } public static function shouldHonorRemoteFlag( $forceUpdate, string $runningVersion, ?string $latestPublishedVersion ): bool { if (!$forceUpdate) return false; // The version API currently treats versions it does not know about as // forced updates. A hotfix newer than the latest published package is // not outdated and must not disable itself because it has no download // record yet. if ($latestPublishedVersion && version_compare($runningVersion, $latestPublishedVersion, '>')) { return false; } return true; } }