Skip to content

VersionCheckResult

github-actions edited this page Apr 28, 2026 · 1 revision

Describes the installed and latest known DevTools versions.


  • Full name: \FastForward\DevTools\SelfUpdate\VersionCheckResult
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Methods

__construct

public __construct(string $currentVersion, string $latestVersion): mixed

Parameters:

Parameter Type Description
$currentVersion string the currently installed DevTools version
$latestVersion string the latest stable DevTools version known to Composer

getCurrentVersion

Returns the currently installed DevTools version.

public getCurrentVersion(): string

getLatestVersion

Returns the latest stable DevTools version known to Composer.

public getLatestVersion(): string

isOutdated

Detects whether the installed version is older than the latest stable version.

public isOutdated(): bool

Clone this wiki locally