Page MenuHomePhorge

D25859.1735314094.diff
No OneTemporary

D25859.1735314094.diff

diff --git a/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php b/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
--- a/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
+++ b/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
@@ -322,26 +322,28 @@
protected function willReadData(array &$data) {
parent::willReadData($data);
- static $custom;
- if ($custom === null) {
- $custom = $this->getConfigOption(self::CONFIG_APPLICATION_SERIALIZERS);
+ static $custom = array();
+ if (!isset($custom[static::class])) {
+ $custom[static::class] = $this->getConfigOption(
+ self::CONFIG_APPLICATION_SERIALIZERS);
}
- if ($custom) {
- foreach ($custom as $key => $serializer) {
+ if (isset($custom[static::class])) {
+ foreach ($custom[static::class] as $key => $serializer) {
$data[$key] = $serializer->willReadValue($data[$key]);
}
}
}
protected function willWriteData(array &$data) {
- static $custom;
- if ($custom === null) {
- $custom = $this->getConfigOption(self::CONFIG_APPLICATION_SERIALIZERS);
+ static $custom = array();
+ if (!isset($custom[static::class])) {
+ $custom[static::class] = $this->getConfigOption(
+ self::CONFIG_APPLICATION_SERIALIZERS);
}
- if ($custom) {
- foreach ($custom as $key => $serializer) {
+ if (isset($custom[static::class])) {
+ foreach ($custom[static::class] as $key => $serializer) {
$data[$key] = $serializer->willWriteValue($data[$key]);
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 15:41 (8 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1035233
Default Alt Text
D25859.1735314094.diff (1 KB)

Event Timeline