Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2709734
D25859.1735314094.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25859.1735314094.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25859: PhabricatorLiskDAO: Fragment serializer cache by class
Attached
Detach File
Event Timeline
Log In to Comment