diff --git a/src/Smarty-sifo-plugins/modifier.link_urls.php b/src/Smarty-sifo-plugins/modifier.link_urls.php
index 8784d9b4..6c477eb0 100644
--- a/src/Smarty-sifo-plugins/modifier.link_urls.php
+++ b/src/Smarty-sifo-plugins/modifier.link_urls.php
@@ -19,11 +19,13 @@
function smarty_modifier_link_urls($string)
{
- $linkedString = preg_replace_callback("/\b(https?):\/\/([-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|]*)\b/i",
- create_function(
- '$matches',
- 'return "".($matches[0])."";'
- ),$string);
+ $linkedString = preg_replace_callback(
+ "/\b(https?):\/\/([-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|]*)\b/i",
+ static function($matches) {
+ return "".($matches[0])."";
+ },
+ $string
+ );
return $linkedString;
}
diff --git a/src/Twig-sifo-plugins/filter.link_urls.php b/src/Twig-sifo-plugins/filter.link_urls.php
index 76b02e7a..9b6932d6 100644
--- a/src/Twig-sifo-plugins/filter.link_urls.php
+++ b/src/Twig-sifo-plugins/filter.link_urls.php
@@ -8,10 +8,9 @@ function twig_filter_link_urls()
) {
return preg_replace_callback(
"/\b(https?):\/\/([-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|]*)\b/i",
- create_function(
- '$matches',
- 'return "".($matches[0])."";'
- ),
+ static function ($matches) {
+ return "".($matches[0])."";
+ },
$string
);
}
diff --git a/src/adodb5/drivers/adodb-mssql.inc.php b/src/adodb5/drivers/adodb-mssql.inc.php
index e0306124..562f27bc 100644
--- a/src/adodb5/drivers/adodb-mssql.inc.php
+++ b/src/adodb5/drivers/adodb-mssql.inc.php
@@ -619,7 +619,9 @@ function Concat()
$arr = $args;
}
- array_walk($arr, create_function('&$v', '$v = "CAST(" . $v . " AS VARCHAR(255))";'));
+ array_walk($arr, static function(&$v) {
+ $v = "CAST(" . $v . " AS VARCHAR(255))";
+ });
$s = implode('+',$arr);
if (sizeof($arr) > 0) return "$s";
diff --git a/src/adodb5/drivers/adodb-mssqlnative.inc.php b/src/adodb5/drivers/adodb-mssqlnative.inc.php
index 59f39442..3f21c024 100644
--- a/src/adodb5/drivers/adodb-mssqlnative.inc.php
+++ b/src/adodb5/drivers/adodb-mssqlnative.inc.php
@@ -419,7 +419,9 @@ function Concat()
$arr = $args;
}
- array_walk($arr, create_function('&$v', '$v = "CAST(" . $v . " AS VARCHAR(255))";'));
+ array_walk($arr, static function(&$v) {
+ $v = "CAST(" . $v . " AS VARCHAR(255))";
+ });
$s = implode('+',$arr);
if (sizeof($arr) > 0) return "$s";