feat: Signatur-Fingerabdruck der Divi-Aufrufe (Reflection); fingerprints.json enthält sig:-Einträge, divi-check --update-reference schreibt sie; Referenz für Divi 5.15.1

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-10-18 22:01:56 +02:00
co-authored by Claude Sonnet 5.5
parent 392fe7c569
commit 710444e88d
8 changed files with 525 additions and 20 deletions
@@ -42,6 +42,19 @@ final class DiviAdapters
return $manifests;
}
/** @return list<Call> Every Divi call of every manifest, each symbol once (the first entry wins). */
public static function calls(): array
{
$calls = [];
foreach (self::manifests() as $manifest) {
foreach ($manifest->calls as $call) {
$calls[ltrim($call->symbol, '\\')] ??= $call;
}
}
return array_values($calls);
}
/** @return list<Mirror> */
public static function mirrors(): array
{