Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
polaris committed Jan 3, 2020
1 parent 30ea2ff commit 66d1d0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Helper/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Jcsp\Cache\Helper;

use Swoft\Stdlib\Helper\Arr;
use Swoft\Stdlib\Helper\StringHelper;

class Str
{
Expand All @@ -16,7 +17,7 @@ public static function formatCacheKey(string $prefix, array $arguments, ?string
if ($matches = self::parseCacheKey($value)) {
foreach ($matches as $search) {
$k = str_replace(['#{', '}'], '', $search);
$value = self::replaceFirst($search, (string) self::dataGet($arguments, $k), $value);
$value = StringHelper::replaceFirst($search, (string) self::dataGet($arguments, $k), $value);
}
}
} else {
Expand Down

0 comments on commit 66d1d0c

Please sign in to comment.