1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Merge pull request #8677 from orklah/openssl

adding openssl_x509_verify
This commit is contained in:
orklah 2022-11-06 21:37:08 +01:00 committed by GitHub
commit d0bc6e25d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -9415,6 +9415,7 @@ return [
'openssl_x509_free' => ['void', 'certificate'=>'OpenSSLCertificate'], 'openssl_x509_free' => ['void', 'certificate'=>'OpenSSLCertificate'],
'openssl_x509_parse' => ['array|false', 'certificate'=>'OpenSSLCertificate|string', 'short_names='=>'bool'], 'openssl_x509_parse' => ['array|false', 'certificate'=>'OpenSSLCertificate|string', 'short_names='=>'bool'],
'openssl_x509_read' => ['OpenSSLCertificate|false', 'certificate'=>'OpenSSLCertificate|string'], 'openssl_x509_read' => ['OpenSSLCertificate|false', 'certificate'=>'OpenSSLCertificate|string'],
'openssl_x509_verify' => ['int', 'certificate'=>'string|OpenSSLCertificate', 'public_key'=>'string|OpenSSLCertificate|OpenSSLAsymmetricKey|array'],
'ord' => ['int', 'character'=>'string'], 'ord' => ['int', 'character'=>'string'],
'OuterIterator::current' => ['mixed'], 'OuterIterator::current' => ['mixed'],
'OuterIterator::getInnerIterator' => ['Iterator'], 'OuterIterator::getInnerIterator' => ['Iterator'],

View File

@ -18,6 +18,7 @@ return [
'added' => [ 'added' => [
'ReflectionProperty::getType' => ['?ReflectionType'], 'ReflectionProperty::getType' => ['?ReflectionType'],
'mb_str_split' => ['list<string>|false', 'string'=>'string', 'length='=>'positive-int', 'encoding='=>'string'], 'mb_str_split' => ['list<string>|false', 'string'=>'string', 'length='=>'positive-int', 'encoding='=>'string'],
'openssl_x509_verify' => ['int', 'certificate'=>'string|resource', 'public_key'=>'string|array|resource'],
], ],
'changed' => [ 'changed' => [
'array_merge' => [ 'array_merge' => [

View File

@ -1193,6 +1193,10 @@ return [
'old' => ['resource|false', 'certificate'=>'string|resource'], 'old' => ['resource|false', 'certificate'=>'string|resource'],
'new' => ['OpenSSLCertificate|false', 'certificate'=>'OpenSSLCertificate|string'], 'new' => ['OpenSSLCertificate|false', 'certificate'=>'OpenSSLCertificate|string'],
], ],
'openssl_x509_verify' => [
'old' => ['int', 'certificate'=>'string|resource', 'public_key'=>'string|array|resource'],
'new' => ['int', 'certificate'=>'string|OpenSSLCertificate', 'public_key'=>'string|OpenSSLCertificate|OpenSSLAsymmetricKey|array'],
],
'parse_str' => [ 'parse_str' => [
'old' => ['void', 'string'=>'string', '&w_result='=>'array'], 'old' => ['void', 'string'=>'string', '&w_result='=>'array'],
'new' => ['void', 'string'=>'string', '&w_result'=>'array'], 'new' => ['void', 'string'=>'string', '&w_result'=>'array'],