diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e03d71..50988b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ ## CHANGELOG +### v3.13.1 - 07-03-2020 + +- Fixed @return types, allowing for better type hinting when the Column class is extended [#118] + ### v3.13.0 - 11-10-2018 - Add missing visible option setter. [#83] @@ -274,6 +278,7 @@ To `created_at` with title `Created At` [#80]: https://github.com/yajra/laravel-datatables-html/pull/80 [#83]: https://github.com/yajra/laravel-datatables-html/pull/83 [#84]: https://github.com/yajra/laravel-datatables-html/pull/84 +[#118]: https://github.com/yajra/laravel-datatables-html/pull/118 [#3]: https://github.com/yajra/laravel-datatables-html/issues/3 [#58]: https://github.com/yajra/laravel-datatables-html/issues/58 diff --git a/src/Html/Column.php b/src/Html/Column.php index 9c507ff..993385f 100644 --- a/src/Html/Column.php +++ b/src/Html/Column.php @@ -54,7 +54,7 @@ public function __construct($attributes = []) * * @param string $data * @param string $title - * @return Column + * @return static */ public static function computed($data, $title = '') { @@ -105,7 +105,7 @@ public function visible(bool $flag = true) * * @param string $data * @param string $name - * @return Column + * @return static */ public static function make($data, $name = '') { @@ -121,7 +121,7 @@ public static function make($data, $name = '') * Create a checkbox column. * * @param string $title - * @return Column + * @return static */ public static function checkbox($title = '') {