From 4d0dc9176b8e1cdd3a2e29ab94dde924466c985a Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 4 Nov 2020 12:15:26 +1300 Subject: [PATCH] DOC Document nullable DataObject in used on table extension guide (#9755) --- docs/en/02_Developer_Guides/14_Files/07_File_Usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/02_Developer_Guides/14_Files/07_File_Usage.md b/docs/en/02_Developer_Guides/14_Files/07_File_Usage.md index a92ec8cf2..322d03a0d 100644 --- a/docs/en/02_Developer_Guides/14_Files/07_File_Usage.md +++ b/docs/en/02_Developer_Guides/14_Files/07_File_Usage.md @@ -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;