Expand description
Lock writing: port of ArrayDumper::dump (from the raw metadata and the
model, with ArrayLoader’s normalizations), of Locker::lockPackages
and of Locker::setLockData; JsonFile encoding.
Structs§
Functions§
- dump_
package ArrayDumper::dump($package)for a non-root package.- lock_
data Locker::setLockData: the lock data (before writing).- lock_
packages Locker::lockPackages.- package_
naming_ error ValidatingArrayLoader::hasPackageNamingError($name, $isLink). Withis_link, the uppercase rule names the lowercase form to use; without it, it suggests the camelCase split (root::manifest_errorfor the root package’s own name,validate_packagefor a package of a repository).- php_
compare_ strings - PHP 8 comparison of two strings (
sort/strcmp: numeric strings compare as numbers, the others byte by byte). - php_
empty - PHP
empty(). - release_
date ArrayLoader:new \DateTime($time, UTC)thenformat(DATE_RFC3339). Recognized forms: integer timestamp, ISO 8601 with or without timezone,Y-m-d H:i:s,Y-m-d. An unknown form is ignored (exception swallowed).- validate_
package ValidatingArrayLoader::validatePackage(called on every package kept by the solver): rejects invalid or reserved names, URLs/references starting with-(argument injection) andbinentries containing...