Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mogilvie/EncryptBundle
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 17d70308641c25411adad6193d1e30795bfb2011
Choose a base ref
..
head repository: mogilvie/EncryptBundle
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: edcca35231caf9b7e31df18579a351f4a6ffa468
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Subscribers/DoctrineEncryptSubscriber.php
4 changes: 2 additions & 2 deletions src/Subscribers/DoctrineEncryptSubscriber.php
Original file line number Diff line number Diff line change
@@ -290,7 +290,7 @@ private function isEncryptedProperty(ReflectionProperty $refProperty)
}

private function normalizeValue(?string $value, string $fieldType, AbstractPlatform $platform) : mixed {
if (!$value) {
if (null === $value) {
return null;
}

@@ -300,7 +300,7 @@ private function normalizeValue(?string $value, string $fieldType, AbstractPlatf
}

private function denormalizeValue(mixed $value, string $fieldType, AbstractPlatform $platform) : ?string {
if (!$value) {
if (null === $value) {
return null;
}