Skip to content

Versions ​

php
final class Zairakai\LaravelDevTools\Update\Versions

The versions of the packages: what a constraint accepts, the latest stable release, the next tag.

Source: src/Update/Versions.php

Methods ​

acceptsVersion() ​

php
public static function acceptsVersion(string $constraint, string $version): bool

Whether a Composer constraint accepts a version. A constraint that cannot be read accepts nothing.

heldConstraints() ​

php
public static function heldConstraints(array $held, array $locked): array

The arguments of composer update that keep the held back packages at their locked version, also when another package requires them: -W would update them with the packages that need them.

Returns list<string>

nextVersion() ​

php
public static function nextVersion(string $last, string $level): string

The version after $last for a level of change (major, minor or patch).

Documentation of 5.5.0 , built from 92a7387 on 5.5.0 by pipeline #3086393151 on 2026-11-18.