Skip to content

Commit c4af0b1

Browse files
authored
Merge pull request yajra#3253 from tusharnain/docblock-improvements
chore: improve datatables() helper docblock for better return type clarity
2 parents 3fc34e8 + c1bdc8e commit c4af0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Or return the factory if source is not set.
77
*
88
* @param \Illuminate\Contracts\Database\Query\Builder|\Illuminate\Contracts\Database\Eloquent\Builder|\Illuminate\Support\Collection|array|null $source
9-
* @return \Yajra\DataTables\DataTables|\Yajra\DataTables\DataTableAbstract
9+
* @return ($source is null ? \Yajra\DataTables\DataTables : \Yajra\DataTables\DataTableAbstract)
1010
*
1111
* @throws \Yajra\DataTables\Exceptions\Exception
1212
*/

0 commit comments

Comments
 (0)