Skip to content

Commit

Permalink
Fixed deserialization cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinsarca committed Jan 4, 2025
1 parent db44177 commit 8a4c532
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ClosureInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ public function __unserialize(array $data): void
$this->body = $data['body'];
$this->use = $data['use'] ?? null;
$this->flags = $data['flags'] ?? 0;
if ($this->key) {
// save it to cache
self::$cache[$this->key] = $this;
}
}

public static function createKey(string $body, ?string $header = null): string
Expand Down

0 comments on commit 8a4c532

Please sign in to comment.