You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -108,24 +108,30 @@ public function __serialize(): array
108
108
109
109
publicfunction__unserialize(array$data): void
110
110
{
111
-
if (self::class !== (new \ReflectionMethod($this, '__wakeup'))->class) {
111
+
if ($wakeup = self::class !== (new \ReflectionMethod($this, '__wakeup'))->class) {
112
112
trigger_deprecation('symfony/http-kernel', '7.4', 'Implementing "%s::__wakeup()" is deprecated, use "__unserialize()" instead.', get_debug_type($this));
113
113
}
114
114
115
115
if (\in_array(array_keys($data), [['data'], ["\0*\0data"]], true)) {
trigger_deprecation('symfony/http-kernel', '7.4', 'Passing more than just key "data" to "%s::__unserialize()" is deprecated, populate properties in "%s::__unserialize()" instead.', self::class, get_debug_type($this));
Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Kernel.php
+30-5Lines changed: 30 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -802,25 +802,46 @@ public function __serialize(): array
802
802
803
803
publicfunction__unserialize(array$data): void
804
804
{
805
-
if (self::class !== (new \ReflectionMethod($this, '__wakeup'))->class) {
805
+
if ($wakeup = self::class !== (new \ReflectionMethod($this, '__wakeup'))->class) {
806
806
trigger_deprecation('symfony/http-kernel', '7.4', 'Implementing "%s::__wakeup()" is deprecated, use "__unserialize()" instead.', get_debug_type($this));
807
807
}
808
808
809
809
if (\in_array(array_keys($data), [['environment', 'debug'], ["\0*\0environment", "\0*\0debug"]], true)) {
trigger_deprecation('symfony/http-kernel', '7.4', 'Passing more than just key "environment" and "debug" to "%s::__unserialize()" is deprecated, populate properties in "%s::__unserialize()" instead.', self::class, get_debug_type($this));
trigger_deprecation('symfony/string', '7.4', 'Passing more than just key "string" to "%s::__unserialize()" is deprecated, populate properties in "%s::__unserialize()" instead.', self::class, get_debug_type($this));
0 commit comments