<?php
declare(strict_types=1);require __DIR__.'/native.php';$final=is_file(__DIR__.'/helper-final-sha.json');$pins=json_decode(file_get_contents(__DIR__.($final?'/helper-final-sha.json':'/helper-sha.json')),true);$actual=[];foreach(glob(__DIR__.'/*.php') as $f)$actual[basename($f)]=hash_file('sha256',$f);ksort($actual);ck($actual===$pins,'Whole actual helper set/SHA frozen');saveOnce($final?'helper-final-actual-fileset.json':'helper-actual-fileset.json',['files'=>$actual,'all_match'=>true,'SQL'=>0,'HTTP'=>0,'DML'=>0,'source'=>sourceProof()]);echo json_encode(['lane'=>$lane,'helper_files'=>count($actual),'all_set_sha_match'=>true,'SQL'=>0,'HTTP'=>0]),"\n";
