Skip to content

Commit

Permalink
fix: Added mandatory type definition for the filename method in the D…
Browse files Browse the repository at this point in the history
…ataTable 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
  • Loading branch information
adamale authored Jun 22, 2022
1 parent f09fdaf commit e5355d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/scaffold/datatable.stub
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class $MODEL_NAME$DataTable extends DataTable
*
* @return string
*/
protected function filename()
protected function filename(): string
{
return '$MODEL_NAME_PLURAL_SNAKE$_datatable_' . time();
}
Expand Down
2 changes: 1 addition & 1 deletion templates/scaffold/datatable_locale.stub
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class $MODEL_NAME$DataTable extends DataTable
*
* @return string
*/
protected function filename()
protected function filename(): string
{
return '$MODEL_NAME_PLURAL_SNAKE$_datatable_' . time();
}
Expand Down

0 comments on commit e5355d6

Please sign in to comment.