You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @paulohenriquesg, thanks for opening this issue. I agree with the reported issue, and also the solution that you have proposed looks reasonable to me. I may post a PR soon for this.
We just made the changes you suggested in both DecryptionTrait and DecryptionTraitV2 :)
This should no longer be giving warnings. Thank you for raising this, and let us know if you still are experiencing warnings after 3.257.3 or if you are experiencing other similar warnings.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
The issue appears because on https://github.com/aws/aws-sdk-php/blob/master/src/Crypto/DecryptionTrait.php#L164 we set the default value to
null
, and this was deprecated on PHP 8.1Expected Behavior
No exceptions are thrown
Current Behavior
We get a deprecation error:
ErrorException: Deprecated: openssl_decrypt(): Passing null to parameter #7 ($aad) of type string is deprecated
Reproduction Steps
--
Possible Solution
Replace the following:
by
Additional Information/Context
No response
SDK version used
3.256.2
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.1
The text was updated successfully, but these errors were encountered: