Skip to content

Commit 03e9bbd

Browse files
committed
Use a benevolent union type in openssl_cipher_iv_length
This function returns `false` (and triggers a warning) only when the argument is an unknown algorithm, which is not something worth checking when using this function with a known algorithm.
1 parent 11e0ab6 commit 03e9bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/functionMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8315,7 +8315,7 @@
83158315
'openal_stream' => ['resource', 'source'=>'resource', 'format'=>'int', 'rate'=>'int'],
83168316
'opendir' => ['resource|false', 'path'=>'string', 'context='=>'resource'],
83178317
'openlog' => ['bool', 'ident'=>'string', 'option'=>'int', 'facility'=>'int'],
8318-
'openssl_cipher_iv_length' => ['int|false', 'method'=>'string'],
8318+
'openssl_cipher_iv_length' => ['__benevolent<int|false>', 'method'=>'string'],
83198319
'openssl_csr_export' => ['bool', 'csr'=>'string|resource', '&w_out'=>'string', 'notext='=>'bool'],
83208320
'openssl_csr_export_to_file' => ['bool', 'csr'=>'string|resource', 'outfilename'=>'string', 'notext='=>'bool'],
83218321
'openssl_csr_get_public_key' => ['resource|false', 'csr'=>'string|resource', 'use_shortnames='=>'bool'],

0 commit comments

Comments
 (0)