Skip to content

Commit 010cd94

Browse files
committed
Drop support for unserializing old serialization formats
1 parent 30626ac commit 010cd94

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

lib/Doctrine/ORM/Query/ParserResult.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
*/
1818
class ParserResult
1919
{
20-
private const LEGACY_PROPERTY_MAPPING = [
21-
'sqlExecutor' => '_sqlExecutor',
22-
'resultSetMapping' => '_resultSetMapping',
23-
'parameterMappings' => '_parameterMappings',
24-
];
25-
2620
/**
2721
* The SQL executor used for executing the SQL.
2822
*/
@@ -121,20 +115,4 @@ public function getSqlParameterPositions(string|int $dqlPosition): array
121115
{
122116
return $this->parameterMappings[$dqlPosition];
123117
}
124-
125-
public function __wakeup(): void
126-
{
127-
$this->__unserialize((array) $this);
128-
}
129-
130-
/** @param array<string, mixed> $data */
131-
public function __unserialize(array $data): void
132-
{
133-
foreach (self::LEGACY_PROPERTY_MAPPING as $property => $legacyProperty) {
134-
$this->$property = $data[sprintf("\0%s\0%s", self::class, $legacyProperty)]
135-
?? $data[sprintf("\0%s\0%s", self::class, $property)]
136-
?? $this->$property
137-
?? null;
138-
}
139-
}
140118
}
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)