Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stub for openssl_sign() function #3532

Open
wants to merge 7 commits into
base: 1.12.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conf/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ parameters:
- ../stubs/arrayFunctions.stub
- ../stubs/core.stub
- ../stubs/typeCheckingFunctions.stub
- ../stubs/openssl.stub
earlyTerminatingMethodCalls: []
earlyTerminatingFunctionCalls: []
memoryLimitFile: %tmpDir%/.memory_limit
Expand Down
18 changes: 18 additions & 0 deletions stubs/openssl.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/**
* @param string $data
* @param string &$signature
* @param \OpenSSLAsymmetricKey|\OpenSSLCertificate|string $private_key
* @param string|int $algorithm
*
* @param-out string $signature
*
* @return bool
*/
function openssl_sign(
string $data,
string &$signature,
\OpenSSLAsymmetricKey|\OpenSSLCertificate|string $private_key,

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, ubuntu-latest)

Function openssl_sign() uses native union types but they're supported only on PHP 8.0 and later.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, ubuntu-latest)

Function openssl_sign() uses native union types but they're supported only on PHP 8.0 and later.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, ubuntu-latest)

Function openssl_sign() uses native union types but they're supported only on PHP 8.0 and later.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, ubuntu-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, windows-latest)

Function openssl_sign() uses native union types but they're supported only on PHP 8.0 and later.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, windows-latest)

Function openssl_sign() uses native union types but they're supported only on PHP 8.0 and later.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, windows-latest)

Function openssl_sign() uses native union types but they're supported only on PHP 8.0 and later.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLAsymmetricKey.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.

Check failure on line 16 in stubs/openssl.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, windows-latest)

Parameter $private_key of function openssl_sign() has invalid type OpenSSLCertificate.
string|int $algorithm = OPENSSL_ALGO_SHA1
): bool {}
Loading