diff --git a/bootstrap.php b/bootstrap.php
index 93f1161c0b64a61bc5b956054b297e4733281c6e..7d7bf3ca85c7df3ea306543b0ada59708207816c 100644
--- a/bootstrap.php
+++ b/bootstrap.php
@@ -229,14 +229,11 @@ class Bootstrap {
                 //      char is not a single-byte char
                 switch ($mode) {
                 case MB_CASE_LOWER:
-                    return preg_replace_callback('/\p{Lu}+/u',
-                        function($a) { return mb_strtolower($a); }, $str);
+                    return preg_replace_callback('/\p{Lu}+/u', 'mb_strtolower', $str);
                 case MB_CASE_UPPER:
-                    return preg_replace_callback('/\p{Ll}+/u',
-                        function($a) { return mb_strtoupper($a); }, $str);
+                    return preg_replace_callback('/\p{Ll}+/u', 'mb_strtoupper', $str);
                 case MB_CASE_TITLE:
-                    return preg_replace_callback('/\b\p{Ll}/u',
-                        function($a) { return mb_strtoupper($a); }, $str);
+                    return preg_replace_callback('/\b\p{Ll}/u', 'mb_strtoupper', $str);
                 }
             }
         }