Test Setup Failed
Push — ft-php71-type-hints ( a9ea11...6460c4 )
by Tom
61:49
created
src/Translatable/Translatable.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
         });
35 35
     }
36 36
 
37
+    /**
38
+     * @param string $locale
39
+     */
37 40
     public function translate(?string $locale = null, bool $withFallback = false): ?Model
38 41
     {
39 42
         return $this->getTranslation($locale, $withFallback);
@@ -179,6 +182,9 @@  discard block
 block discarded – undo
179 182
         return parent::getAttribute($key);
180 183
     }
181 184
 
185
+    /**
186
+     * @param string $value
187
+     */
182 188
     public function setAttribute(string $key, $value)
183 189
     {
184 190
         [$attribute, $locale] = $this->getAttributeAndLocale($key);
Please login to merge, or discard this patch.