Skip to content

Commit

Permalink
ENH Add generic types (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Jan 23, 2024
1 parent 229fdd1 commit a42be22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/RegistryImportFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function getStoragePath($modelClass = null)
/**
* Loop import files in the storage path and push them into an {@link ArrayList}
*
* @return ArrayList
* @return ArrayList<RegistryImportFeedEntry>
*/
public function getImportFiles()
{
Expand Down
5 changes: 4 additions & 1 deletion src/RegistryPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use SilverStripe\View\ArrayData;
use SilverStripe\View\ViewableData;

/**
* @extends PageController<RegistryPage>
*/
class RegistryPageController extends PageController
{
private static $allowed_actions = [
Expand Down Expand Up @@ -203,7 +206,7 @@ public function canSortBy($property)
* Format a set of columns, used for headings and row data
*
* @param int $id The result ID to reference
* @return ArrayList
* @return ArrayList<ArrayData>
* @throws RegistryException If parameters are used in column names
*/
public function Columns($id = null)
Expand Down

0 comments on commit a42be22

Please sign in to comment.