Skip to content

Commit 957cf0d

Browse files
refactor: use string interpolation
1 parent 63e710b commit 957cf0d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

framework/core/src/Foundation/AbstractValidator.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ protected function getAttributeNames()
9898
{
9999
$cache = resolve(Cache::class);
100100

101-
$cacheKey = sprintf(
102-
'core.validation.attributes.%s.%s',
103-
$this->translator->getLocale(),
104-
static::class
105-
);
101+
$cacheKey = 'core.validation.attributes.' . $this->translator->getLocale() . '.' . static::class;
106102

107103
if ($cached = $cache->get($cacheKey)) {
108104
return $cached;

0 commit comments

Comments
 (0)