Skip to content
docsv0.44.3

StagingAmendment

Repair the staging sibling owned by ImplementHandler; never judge or publish live PHP.

StagingAmendment::validate()

public static function validate(array $input): ?string

Check the amendment's bounded input before opening any file.

Parameters

Parameters of validate()
NameTypeDescription
$inputarray<string, mixed>

StagingAmendment::apply()

public static function apply(string $root, string $file, array $input): array

Amend only a confined, existing staging file with the expected current bytes. The lock coordinates amend calls on the opened inode. Recheck that inode and its bytes before atomic replacement. This is not a cross-writer transaction: callers must serialize start/append/finish and external writes, as the governed trial runtime already does.

Parameters

Parameters of apply()
NameTypeDescription
$rootstring
$filestring
$inputarray<string, mixed>