← Back
Editing: DigestMismatch.php
<?php declare(strict_types=1); namespace ThePhpFoundation\Attestation\Verification\Exception; use function sprintf; use function substr; class DigestMismatch extends FailedToVerifyArtifact { public static function fromChecksumMismatch(string $expected, string $actual): self { return new self(sprintf( 'Failed checksum verification. Expected %s..., was %s...', substr($expected, 0, 8), substr($actual, 0, 8), )); } }
Save File
Cancel