Skip to content

Commit e5355d6

Browse files
authored
fix: Added mandatory type definition for the filename method in the DataTable stub (#1000)
* Added mandatory type definition for the filename method in the DataTable stub * Added mandatory type definition for the filename method in the DataTable locale stub
1 parent f09fdaf commit e5355d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/scaffold/datatable.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class $MODEL_NAME$DataTable extends DataTable
7474
*
7575
* @return string
7676
*/
77-
protected function filename()
77+
protected function filename(): string
7878
{
7979
return '$MODEL_NAME_PLURAL_SNAKE$_datatable_' . time();
8080
}

templates/scaffold/datatable_locale.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class $MODEL_NAME$DataTable extends DataTable
9898
*
9999
* @return string
100100
*/
101-
protected function filename()
101+
protected function filename(): string
102102
{
103103
return '$MODEL_NAME_PLURAL_SNAKE$_datatable_' . time();
104104
}

0 commit comments

Comments
 (0)