diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index 649f3f512e6..4349a4bfc82 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -160,7 +160,7 @@ class FormFile
* @param int $sectionid If upload must be done inside a particular ECM section (is sectionid defined, sectiondir must not be)
* @param int $perm Value of permission to allow upload
* @param int $size Length of input file area. Deprecated.
- * @param ?CommonObject|BlockedLog $object Object to use (when attachment is done on an element)
+ * @param CommonObject|BlockedLog|null $object Object to use (when attachment is done on an element)
* @param string $options Add an option column
* @param int<0,1> $useajax Use fileupload ajax (0=never, 1=if enabled, 2=always whatever is option).
* Deprecated 2 should never be used and if 1 is used, option should not be enabled.