File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ class Obj implements Serializable {
4040 }
4141
4242 public function __serialize () {
43- return $ this ->serialize ();
43+ return [ $ this ->serialize ()] ;
4444 }
4545
4646 public function __unserialize ($ serialized ) {
47- return $ this ->unserialize ();
47+ return $ this ->unserialize ($ serialized [ 0 ] );
4848 }
4949}
5050
Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ class Obj implements Serializable {
4848 }
4949
5050 public function __serialize () {
51- return $ this ->serialize ();
51+ return [ $ this ->serialize ()] ;
5252 }
5353
5454 public function __unserialize ($ serialized ) {
55- return $ this ->unserialize ();
55+ return $ this ->unserialize ($ serialized [ 0 ] );
5656 }
5757}
5858
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ class Foo implements Serializable {
2525 }
2626
2727 public function __serialize () {
28- return $ this ->serialize ();
28+ return [ $ this ->serialize ()] ;
2929 }
3030
3131 public function __unserialize ($ serialized ) {
32- return $ this ->unserialize ();
32+ return $ this ->unserialize ($ serialized [ 0 ] );
3333 }
3434}
3535
You can’t perform that action at this time.
0 commit comments