Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 823a95d

Browse files
Add missing @internal annotations
1 parent 82394d8 commit 823a95d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Symfony/Component/Form/Extension/DataCollector/FormDataCollector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ public function getData()
228228
return $this->data;
229229
}
230230

231+
/**
232+
* @internal
233+
*/
231234
public function serialize()
232235
{
233236
if ($this->hasVarDumper) {

src/Symfony/Component/HttpKernel/DataCollector/DumpDataCollector.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ public function reset()
176176
$this->clonesIndex = 0;
177177
}
178178

179+
/**
180+
* @internal
181+
*/
179182
public function serialize()
180183
{
181184
if ($this->clonesCount !== $this->clonesIndex) {
@@ -195,9 +198,12 @@ public function serialize()
195198
return $ser;
196199
}
197200

201+
/**
202+
* @internal
203+
*/
198204
public function unserialize($data)
199205
{
200-
parent::unserialize($data);
206+
$this->data = unserialize($data);
201207
$charset = array_pop($this->data);
202208
$fileLinkFormat = array_pop($this->data);
203209
$this->dataCount = \count($this->data);

0 commit comments

Comments
 (0)