This commit is contained in:
2021-03-02 17:31:07 +08:00
parent a703a9011a
commit 430e87a993
+1 -1
View File
@@ -593,7 +593,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
* @param $value
* @return mixed
*/
public function toFormat($columns, $format, $key, $value)
public function toFormat($columns, $format, $key, $value): mixed
{
if (isset($format[$key])) {
return $columns->encode($value, $columns->clean($format[$key]));