Skip to content

Commit

Permalink
adding openssl_x509_verify
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Nov 6, 2022
1 parent b48a713 commit 74111a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions dictionaries/CallMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9415,6 +9415,7 @@
'openssl_x509_free' => ['void', 'certificate'=>'OpenSSLCertificate'],
'openssl_x509_parse' => ['array|false', 'certificate'=>'OpenSSLCertificate|string', 'short_names='=>'bool'],
'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'],
'OuterIterator::current' => ['mixed'],
'OuterIterator::getInnerIterator' => ['Iterator'],
Expand Down
1 change: 1 addition & 0 deletions dictionaries/CallMap_74_delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'added' => [
'ReflectionProperty::getType' => ['?ReflectionType'],
'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' => [
'array_merge' => [
Expand Down
4 changes: 4 additions & 0 deletions dictionaries/CallMap_80_delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,10 @@
'old' => ['resource|false', 'certificate'=>'string|resource'],
'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' => [
'old' => ['void', 'string'=>'string', '&w_result='=>'array'],
'new' => ['void', 'string'=>'string', '&w_result'=>'array'],
Expand Down
2 changes: 2 additions & 0 deletions src/Psalm/Internal/Type/AssertionReconciler.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public static function reconcile(
?int &$failed_reconciliation = Reconciler::RECONCILIATION_OK,
bool $negated = false
): Union {
var_dump($assertion);
var_dump($existing_var_type->getId());
$codebase = $statements_analyzer->getCodebase();

$is_strict_equality = false;
Expand Down

0 comments on commit 74111a3

Please sign in to comment.