diff --git a/src/PhpSpreadsheet/Writer/Html.php b/src/PhpSpreadsheet/Writer/Html.php
index 1403d9be..fceec678 100644
--- a/src/PhpSpreadsheet/Writer/Html.php
+++ b/src/PhpSpreadsheet/Writer/Html.php
@@ -208,7 +208,7 @@ class Html extends BaseWriter
return $html;
}
- public function setEditHtmlCallback(callable $cbk): void
+ public function setEditHtmlCallback(?callable $cbk): void
{
$this->editHtmlCallback = $cbk;
}