Skip to content

Commit 81210ac

Browse files
committed
fix openssl_encrypt special case signature
1 parent 7003543 commit 81210ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/special_cases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function readdir($dir_handle = null)
204204
* @throws OpensslException
205205
*
206206
*/
207-
function openssl_encrypt(string $data, string $method, string $key, int $options = 0, string $iv = "", string &$tag = "", string $aad = "", int $tag_length = 16): string
207+
function openssl_encrypt(string $data, string $method, string $key, int $options = 0, string $iv = "", ?string &$tag = "", string $aad = "", int $tag_length = 16): string
208208
{
209209
error_clear_last();
210210
// The $tag parameter is handled in a weird way by openssl_encrypt. It cannot be provided unless encoding is AEAD

0 commit comments

Comments
 (0)