Skip to content

Commit 81363ad

Browse files
authored
add missing return type-hints
1 parent e3b20df commit 81363ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Translatable/Locales.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function all(): array
4343
return array_values($this->locales);
4444
}
4545

46-
public function current()
46+
public function current(): string
4747
{
4848
return $this->config->get('translatable.locale') ?: $this->translator->getLocale();
4949
}
@@ -115,7 +115,7 @@ public function offsetGet($key): ?string
115115
return $this->get($key);
116116
}
117117

118-
public function offsetSet($key, $value)
118+
public function offsetSet($key, $value): void
119119
{
120120
if (is_string($key) && is_string($value)) {
121121
$this->add($this->getCountryLocale($key, $value));
@@ -124,7 +124,7 @@ public function offsetSet($key, $value)
124124
}
125125
}
126126

127-
public function offsetUnset($key)
127+
public function offsetUnset($key): void
128128
{
129129
$this->forget($key);
130130
}

0 commit comments

Comments
 (0)