Skip to content

Commit

Permalink
Ensure null values are not encrypted (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Rob <rob@prigroup.eu>
  • Loading branch information
yormy and RobPrigroup authored Nov 7, 2023
1 parent fb3dee0 commit 42d1b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/UsesCipherSweet.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function encryptRow(): void
$attributes = $this->getAttributes();

foreach ($fieldsToEncrypt as $field) {
$attributes[$field] ??= '';
$attributes[$field] ??= NULL;
}

$this->setRawAttributes(static::$cipherSweetEncryptedRow->encryptRow($attributes));
Expand Down

0 comments on commit 42d1b84

Please sign in to comment.