File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,8 @@ public function serialize()
170
170
return 'a:0:{} ' ;
171
171
}
172
172
173
+ $ this ->data [] = $ this ->fileLinkFormat ;
174
+ $ this ->data [] = $ this ->charset ;
173
175
$ ser = serialize ($ this ->data );
174
176
$ this ->data = array ();
175
177
$ this ->dataCount = 0 ;
@@ -184,8 +186,10 @@ public function serialize()
184
186
public function unserialize ($ data )
185
187
{
186
188
parent ::unserialize ($ data );
189
+ $ charset = array_pop ($ this ->data );
190
+ $ fileLinkFormat = array_pop ($ this ->data );
187
191
$ this ->dataCount = count ($ this ->data );
188
- self ::__construct ($ this ->stopwatch );
192
+ self ::__construct ($ this ->stopwatch , $ fileLinkFormat , $ charset );
189
193
}
190
194
191
195
public function getDumpsCount ()
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ public function testDump()
49
49
);
50
50
$ this ->assertSame ($ xDump , $ dump );
51
51
52
- $ this ->assertStringMatchesFormat ('a:1 :{i:0;a:5:{s:4:"data";O:39:"Symfony\Component\VarDumper\Cloner\Data":%a ' , $ collector ->serialize ());
52
+ $ this ->assertStringMatchesFormat ('a:3 :{i:0;a:5:{s:4:"data";O:39:"Symfony\Component\VarDumper\Cloner\Data":%a ' , $ collector ->serialize ());
53
53
$ this ->assertSame (0 , $ collector ->getDumpsCount ());
54
- $ this ->assertSame ('a:0:{ } ' , $ collector ->serialize ());
54
+ $ this ->assertSame ('a:2:{i:0;b:0;i:1;s:5:"UTF-8"; } ' , $ collector ->serialize ());
55
55
}
56
56
57
57
public function testCollectDefault ()
You can’t perform that action at this time.
0 commit comments