@@ -311,7 +311,7 @@ |
||
311 | 311 | * Get the field value. |
312 | 312 | * |
313 | 313 | * @param void |
314 | - * @return mixed |
|
314 | + * @return string |
|
315 | 315 | */ |
316 | 316 | public function getValue() |
317 | 317 | { |
@@ -47,8 +47,7 @@ |
||
47 | 47 | if (is_string($crudable)) |
48 | 48 | { |
49 | 49 | return new CrudEntry(new $crudable); |
50 | - } |
|
51 | - else if (is_object($crudable) && array_key_exists(Crudable::class, class_uses($crudable))) |
|
50 | + } else if (is_object($crudable) && array_key_exists(Crudable::class, class_uses($crudable))) |
|
52 | 51 | { |
53 | 52 | return new CrudEntry($crudable); |
54 | 53 | } |