Skip to content

Commit

Permalink
change signatures for openssl_sign to Adapt to php8+ for PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangqi Chen committed Apr 14, 2023
1 parent 3115ecd commit 7514b79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generator/config/CustomPhpStanFunctionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
'openssl_pkey_get_details' => ['array|false', 'key'=>'OpenSSLAsymmetricKey'],
'openssl_pkey_get_private' => ['OpenSSLAsymmetricKey|false', 'private_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array|string', 'passphrase='=>'null|string'],
'openssl_pkey_get_public' => ['OpenSSLAsymmetricKey|false', 'public_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array|string'],
'openssl_sign' => ['void', 'data'=>'string', '&signature'=>'string|null', 'private_key'=>'OpenSSLAsymmetricKey|resource|string', 'algorithm'=>'int|string'],
// theses replace ressource by OpenSSLCertificate
'openssl_verify' => ['-1|0|1|false', 'data'=>'string', 'signature'=>'string', 'pub_key_id'=>' OpenSSLAsymmetricKey|OpenSSLCertificate|string', 'signature_alg='=>'int|string'],
'openssl_x509_read' => ['OpenSSLCertificate|false', 'x509certdata'=>'OpenSSLCertificate|string'], // this replaces ressource by OpenSSLCertificate
Expand Down

0 comments on commit 7514b79

Please sign in to comment.