Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/Encryption/EntityEncryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,13 @@ protected function process(object $entity) : array
return $marked;
}

protected function hasMarker(string $value) : bool
protected function hasMarker(?string $value) : bool
{
$substr = strpos($value, self::ENCRYPTION_MARKER);
$substr = false;

if ($value !== null) {
$substr = strpos($value, self::ENCRYPTION_MARKER);
}

return $substr !== false;
}
Expand Down