From 5b4645501c9c1cd871cad2725daa32dd833ceb2f Mon Sep 17 00:00:00 2001 From: Valentijn Evers Date: Fri, 6 Dec 2019 12:10:15 +0100 Subject: [PATCH 1/2] Fixed @return types, allowing for better type hinting when the Column.php class is extended --- src/Html/Column.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = '') { From 4738740c496bf2e7b1938585f6ed1cbdeebdf9ec Mon Sep 17 00:00:00 2001 From: "Arjay Q. Angeles" Date: Sat, 7 Mar 2020 10:49:03 +0800 Subject: [PATCH 2/2] Bump v3.13.1 :rocket: --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) 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