Appearance
PolicyChecks
php
final class Zairakai\LaravelDevTools\Update\PolicyChecksWhat the policy of a project forbids: the requirements that break it, and the entries that are lifted or inherited.
Source: src/Update/PolicyChecks.php
Methods
isLifted()
php
public static function isLifted(array $entry, array $ranges): boolWhether the condition of an entry of the policy is met: every package of peers accepts the version in its range.
| Parameter | Description |
|---|---|
$ranges | The range in which each peer requires the package, by peer. |
policyViolations()
php
public static function policyViolations(array $blocked, array $beforeManifest, array $afterManifest, array $beforeLock, array $afterLock): arrayThe packages of the policy whose version changes: in the manifest (a range moves) or in the lock file. A package that is added or removed is not an update.
Returns list<string>