Reproduction steps:
- Upload a file into the document manager
- Create a new version of the document and set manually the date to something like foo (can be done through SOAP or by manipulating the form)
- Display the history of this document
Trace:
PHP Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /usr/share/tuleap/src/www/include/utils.php:31
Stack trace:
#0 /usr/share/tuleap/src/www/include/utils.php(31): date()
#1 /usr/share/tuleap/plugins/docman/include/Docman_Log.class.php(164): format_date()
#2 /usr/share/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionHistory.class.php(51): Docman_Log->fetchLogsForItem()
#3 /usr/share/tuleap/plugins/docman/include/view/Docman_View_ItemDetails.class.php(67): Docman_View_ItemDetailsSectionHistory->getContent()
#4 /usr/share/tuleap/plugins/docman/include/view/Docman_View_ItemDetails.class.php(74): Docman_View_ItemDetails->fetch()
#5 /usr/share/tuleap/plugins/docman/include/view/Docman_View_Details.class.php(131): Docman_View_ItemDetails->display()
#6 /usr/share/tuleap/plugins/docman/include/view/Docman_View_View.class.php(59): Docman_View_Details->_content()
#7 /usr/share/tuleap/plugins/docman/include/Docman_Controll