laravel-database-encryption icon indicating copy to clipboard operation
laravel-database-encryption copied to clipboard

Nullable fields, PHP deprecated

Open ignacio-dev opened this issue 2 years ago • 0 comments

I need to encrypt a nullable string.

Works fine when passing a string, but when passing null, it throws the following message:

PHP Deprecated: openssl_encrypt(): Passing null to parameter #1 ($data) of type string is deprecated in /var/www/html/vendor/elgibor-solution/laravel-database-encryption/src/Encrypter.php on line 19

ignacio-dev avatar Aug 22 '22 09:08 ignacio-dev