minor #30112 Remove "internal" annotation from datacollector serialization methods (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

Remove "internal" annotation from datacollector serialization methods

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

I've been a bit too aggressively adding `@internal` in #30035.

Commits
-------

3c8fd2072f Remove "internal" annotation from datacollector serialization methods
This commit is contained in:
Nicolas Grekas 2019-02-08 13:55:24 +01:00
commit bb54e40ca7
3 changed files with 0 additions and 15 deletions

View File

@ -228,9 +228,6 @@ class FormDataCollector extends DataCollector implements FormDataCollectorInterf
return $this->data;
}
/**
* @internal
*/
public function serialize()
{
if ($this->hasVarDumper) {

View File

@ -40,9 +40,6 @@ abstract class DataCollector implements DataCollectorInterface, \Serializable
*/
private $cloner;
/**
* @internal
*/
public function serialize()
{
$trace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2);
@ -51,9 +48,6 @@ abstract class DataCollector implements DataCollectorInterface, \Serializable
return $isCalledFromOverridingMethod ? $this->data : serialize($this->data);
}
/**
* @internal
*/
public function unserialize($data)
{
$this->data = \is_array($data) ? $data : unserialize($data);

View File

@ -176,9 +176,6 @@ class DumpDataCollector extends DataCollector implements DataDumperInterface
$this->clonesIndex = 0;
}
/**
* @internal
*/
public function serialize()
{
if ($this->clonesCount !== $this->clonesIndex) {
@ -198,9 +195,6 @@ class DumpDataCollector extends DataCollector implements DataDumperInterface
return $ser;
}
/**
* @internal
*/
public function unserialize($data)
{
$this->data = unserialize($data);