Type Error: won't decrypt float #18
Description
i have a column with existing data (a float) in it. i converted the mariadb data type from decimal to varchar. installed laravel-database-encryption, re-saved the data in my app and laravel-database-encryption was able to encrypt it. however, when i went to view the data in my app again, laravel-database-encryption wasn't able to decrypt it. The error can probably speak for itself.
Type error: Return value of App\Models\Entry::decryptedAttribute() must be of the type string or null, float returned
…/vendor/austinheap/laravel-database-encryption/src/Traits/HasEncryptedAttributes.php 173
i understand that the data needs to be stored as some type of text in the database and it is, but i need to be able to encrypt/decrypt any data type. Maybe i'm missing something? FYI, i just reinstalled elocrypt and it handles this same scenario fine.
thanks