From 6dbcc7aacd2e18cc8cc2648907f93bdaf544d63d Mon Sep 17 00:00:00 2001 From: printempw Date: Thu, 11 Aug 2016 22:56:36 +0800 Subject: [PATCH] fix non-static method --- app/Services/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Utils.php b/app/Services/Utils.php index 92b76af4..bb14aa35 100644 --- a/app/Services/Utils.php +++ b/app/Services/Utils.php @@ -108,7 +108,7 @@ class Utils * @param array $rules * @return string */ - public function getStringReplaced($str, $rules) + public static function getStringReplaced($str, $rules) { foreach ($rules as $search => $replace) { $str = str_replace($search, $replace, $str);