Skip to content

Commit

Permalink
change signatures for openssl_sign to Adapt to php8+
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangqi Chen committed Apr 12, 2023
1 parent 3115ecd commit 365ff6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion generated/openssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ function openssl_seal(string $data, ?string &$sealed_data, ?array &$encrypted_ke
* @param string $data The string of data you wish to sign
* @param string|null $signature If the call was successful the signature is returned in
* signature.
* @param resource|string $private_key OpenSSLAsymmetricKey - a key, returned by openssl_get_privatekey
* @param resource|OpenSSLAsymmetricKey|string $private_key OpenSSLAsymmetricKey - a key, returned by openssl_get_privatekey
*
* string - a PEM formatted key
* @param int|string $algorithm int - one of these Signature Algorithms.
Expand Down
1 change: 0 additions & 1 deletion lib/special_cases.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ function fputcsv($stream, array $fields, string $separator = ",", string $enclos
{
error_clear_last();
if (PHP_VERSION_ID >= 80100) {
/** @phpstan-ignore-next-line */
$result = \fputcsv($stream, $fields, $separator, $enclosure, $escape, $eol);
} else {
$result = \fputcsv($stream, $fields, $separator, $enclosure, $escape);
Expand Down

0 comments on commit 365ff6d

Please sign in to comment.