Skip to content

Commit 6450a94

Browse files
author
e1himself
committed
Replace deprecated create_function with regular lambda function
(it's okay as minimal PHP version we support is 5.3)
1 parent 64ed988 commit 6450a94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/config/sfConfigHandler.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static public function replaceConstants($value)
7575
{
7676
if (is_array($value))
7777
{
78-
array_walk_recursive($value, create_function('&$value', '$value = sfToolkit::replaceConstants($value);'));
78+
array_walk_recursive($value, function(& $value) { $value = sfToolkit::replaceConstants($value); });
7979
}
8080
else
8181
{
@@ -96,7 +96,7 @@ static public function replacePath($path)
9696
{
9797
if (is_array($path))
9898
{
99-
array_walk_recursive($path, create_function('&$path', '$path = sfConfigHandler::replacePath($path);'));
99+
array_walk_recursive($path, function(&$path) { $path = sfConfigHandler::replacePath($path); });
100100
}
101101
else
102102
{

0 commit comments

Comments
 (0)