We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c64759 commit b5de04bCopy full SHA for b5de04b
1 file changed
src/Normalizers/NormalizeSerialize.php
@@ -62,7 +62,7 @@ public function run()
62
if (version_compare(PHP_VERSION, '7.0.0') >= 0) {
63
//options added @ v 7.0 which allow no evaluating for classes
64
//object will be instantiated as __PHP_Incomplete_Class
65
- $decoded = @unserialize($this->value, false);
+ $decoded = @unserialize($this->value, []);
66
} else {
67
$decoded = false; //don't serialize it might be danger
68
}
@@ -79,6 +79,12 @@ public function run()
79
$decoded = $arrayValue;
80
81
82
+ //Object of class __PHP_Incomplete_Class
83
+ if(gettype($decoded) === 'object'){
84
+ //object serialize must be the same
85
+ return $this->value;
86
+ }
87
+
88
return $decoded;
89
90
0 commit comments