@, * where the detected version is what composer could detect. * * @throws OutOfBoundsException * * @psalm-pure * * @psalm-suppress MixedOperand `composer-runtime-api:^2` has rough if no type declarations at all - we'll live with it * @psalm-suppress ImpureMethodCall `composer-runtime-api:^2` has rough if no type declarations at all - we'll live with it */ public static function getVersion(): string { if (class_exists(InstalledVersions::class)) { return InstalledVersions::getPrettyVersion('friendsofphp/proxy-manager-lts') . '@' . InstalledVersions::getReference('friendsofphp/proxy-manager-lts'); } if (class_exists(Versions::class)) { return Versions::getVersion('friendsofphp/proxy-manager-lts'); } return '1@friendsofphp/proxy-manager-lts'; } }