I am using the following code:
require_once 'classes/SignDocx.inc';
$sign = new SignDocx();
$sign->setDocx('Test.docx');
$sign->setPrivateKey('Test.pem', 'mypass');
$sign->setX509Certificate('Test.pem');
$sign->setSignatureComments('This document has been signed by me');
$sign->sign();
I can not sign the docx document. The following message appears:
sort() expects parameter 1 to be array, null given in [.../vendor/phpdocx/phpdocx/Classes/Phpdocx/Sign/SignDocx.inc 462]
Does anyone know what this error can be?