Skip to content

Commit

Permalink
Removed call to deprecated method.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSlabon committed Jun 10, 2024
1 parent 2390785 commit 668bf17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

$document = \SetaPDF_Core_Document::loadByFilename($path);

$signatureFieldNames = \SetaPDF_Signer_ValidationRelatedInfo_Collector::getSignatureFieldNames($document);
$signatureFieldNames = \SetaPDF_Signer::getSignatureFieldNames($document);
foreach ($signatureFieldNames as $signatureFieldName) {
echo htmlspecialchars(sprintf('Signature Field "%s" is ', $signatureFieldName));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function verifyAndDumpCertificate(

try {
$document = \SetaPDF_Core_Document::loadByFilename($file);
$signatureFieldNames = \SetaPDF_Signer_ValidationRelatedInfo_Collector::getSignatureFieldNames($document);
$signatureFieldNames = \SetaPDF_Signer::getSignatureFieldNames($document);

foreach ($signatureFieldNames AS $fieldName) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$reader = new \SetaPDF_Core_Reader_Stream($fh);
$document = \SetaPDF_Core_Document::load($reader);

$fieldNames = \SetaPDF_Signer_ValidationRelatedInfo_Collector::getSignatureFieldNames($document);
$fieldNames = \SetaPDF_Signer::getSignatureFieldNames($document);
// let's filter only used signature fields
$fieldNames = array_filter($fieldNames, static function($fieldName) use ($document) {
$integrityResult = \SetaPDF_Signer_ValidationRelatedInfo_IntegrityResult::create($document, $fieldName);
Expand Down

0 comments on commit 668bf17

Please sign in to comment.