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;