EditPairs
Apply exact replacements to supplied bytes; this grants no authority and writes no files.
EditPairs::apply()
public static function apply(string $content, array $edits, string $sourceLabel = 'CURRENT file'): arrayTransform only the supplied bytes, refusing missing or ambiguous matches.
Parameters
| Name | Type | Description |
|---|---|---|
| $content | string | |
| $edits | array<array-key, mixed> | |
| $sourceLabel | string |