Skip to content

AlpmDepMissing

Mark King edited this page Sep 25, 2026 · 1 revision

AlpmDepMissing

Describes an unsatisfied dependency found while preparing a transaction. You don't construct this yourself — it shows up in AlpmTransaction::prepare()'s return value when errno is ALPM_ERR_UNSATISFIED_DEPS:

$err = $trans->prepare();
if ($err !== null && !empty($err["offenders"])) {
    foreach ($err["offenders"] as $missing) {
        if ($missing instanceof AlpmDepMissing) {
            echo "{$missing->target} needs {$missing->depend}\n";
        }
    }
}

See AlpmTransaction for the full prepare() error shape.

Properties

All readonly.

Property Type Description
target string Name of the package that needs the missing dependency
depend AlpmDepend The unsatisfied dependency
causingpkg string|null Package whose removal caused this (removal transactions only), null otherwise

Methods

__toString()

public function __toString(): string

Returns a human-readable description of the missing dependency.

Clone this wiki locally