Skip to content

Commit

Permalink
Updated init
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinsarca committed Dec 24, 2024
1 parent ff8f046 commit 43f795f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public static function init(
ClosureStream::init();

// Set security provider
self::setSecurityProvider($security);
if ($security) {
self::setSecurityProvider($security);
}

// Set uniq key
self::$uniqKey = '@(opis/closure):key:' . chr(0) . uniqid() . chr(8);
Expand Down

0 comments on commit 43f795f

Please sign in to comment.