File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments