Skip to content

Commit

Permalink
DOC Document nullable DataObject in used on table extension guide (#9755
Browse files Browse the repository at this point in the history
)
  • Loading branch information
emteknetnz authored Nov 3, 2020
1 parent e5a55a9 commit 4d0dc91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/02_Developer_Guides/14_Files/07_File_Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class UsedOnTableExtension extends Extension
// This extension hook will alter a DataObject after it was fetched via MyDataObject::get()
// This allows a greater level of flexibility to exclude or modify individual DataObjects
// It is less efficient to use this extension hook that `updateUsageExcludedClasses()` above
public function updateUsageDataObject(DataObject $dataObject)
public function updateUsageDataObject(?DataObject &$dataObject)
{
if (!($dataObject instanceof MyDataObject)) {
return;
Expand Down

0 comments on commit 4d0dc91

Please sign in to comment.