gmp_strval($signature->getR(), 10) of type string is incompatible with the type integer expected by parameter $value of FG\ASN1\Universal\Integer::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
19
new Integer(/** @scrutinizer ignore-type */ gmp_strval($signature->getR(), 10)),
Loading history...
20
new Integer(gmp_strval($signature->getS(), 10))
21
);
22
}
23
24
/**
25
* @param SignatureInterface $signature
26
* @return string
27
*/
28
public function serialize(SignatureInterface $signature): string