Skip to content

Commit 31d4edf

Browse files
[2.3] Remove possible call_user_func()
1 parent cdee77f commit 31d4edf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Functional/app/AppKernel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ public function serialize()
105105

106106
public function unserialize($str)
107107
{
108-
call_user_func_array(array($this, '__construct'), unserialize($str));
108+
$a = unserialize($str);
109+
$this->__construct($a[0], $a[1], $a[2], $a[3]);
109110
}
110111

111112
protected function getKernelParameters()

0 commit comments

Comments
 (0)