mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-21 22:32:41 +01:00
Fix PhutilOAuth1FutureTestCase::testOAuth1SigningWithJIRAExamples for PHP 8
Summary: PHP 8 deprecates openssl_free_key as the key is automatically freed, so silence the warning in PhutilOAuth1Future::signString. Test Plan: Ran arc lint --everything Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin Maniphest Tasks: T13588 Differential Revision: https://secure.phabricator.com/D21502
This commit is contained in:
parent
9589fd1866
commit
f64eb04300
1 changed files with 2 additions and 1 deletions
|
@ -268,7 +268,8 @@ final class PhutilOAuth1Future extends FutureProxy {
|
|||
throw new Exception(pht('%s failed!', 'openssl_sign()'));
|
||||
}
|
||||
|
||||
openssl_free_key($pkey);
|
||||
// Deprecated in PHP 8; key is automatically freed.
|
||||
@openssl_free_key($pkey);
|
||||
|
||||
return base64_encode($signature);
|
||||
case 'PLAINTEXT':
|
||||
|
|
Loading…
Reference in a new issue