Skip to content

Commit 4392f24

Browse files
authored
Merge pull request #705 from driehle/feature/serializable
Removed Serializable interface from MappingCollector
2 parents 2e3123c + b50d778 commit 4392f24

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

src/Collector/MappingCollector.php

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@
99
use Laminas\DeveloperTools\Collector\AutoHideInterface;
1010
use Laminas\DeveloperTools\Collector\CollectorInterface;
1111
use Laminas\Mvc\MvcEvent;
12-
use Serializable;
1312

1413
use function ksort;
15-
use function serialize;
16-
use function unserialize;
1714

1815
/**
1916
* Collector to be used in DeveloperTools to record and display mapping information
2017
*/
21-
class MappingCollector implements CollectorInterface, AutoHideInterface, Serializable
18+
class MappingCollector implements CollectorInterface, AutoHideInterface
2219
{
2320
/**
2421
* Collector priority
@@ -93,16 +90,6 @@ public function __serialize(): array
9390
];
9491
}
9592

96-
/**
97-
* {@inheritDoc}
98-
*
99-
* @deprecated 4.2.0 This function will be removed in 5.0.0. Use __serialize() instead.
100-
*/
101-
public function serialize()
102-
{
103-
return serialize($this->__serialize());
104-
}
105-
10693
/**
10794
* @param array{name: string, classes: ClassMetadata[]} $data
10895
*/
@@ -112,16 +99,6 @@ public function __unserialize(array $data): void
11299
$this->classes = $data['classes'];
113100
}
114101

115-
/**
116-
* {@inheritDoc}
117-
*
118-
* @deprecated 4.2.0 This function will be removed in 5.0.0. Use __unserialize() instead.
119-
*/
120-
public function unserialize($serialized)
121-
{
122-
$this->__unserialize(unserialize($serialized));
123-
}
124-
125102
/**
126103
* @return ClassMetadata[]
127104
*/

0 commit comments

Comments
 (0)