N°4517 - PHP 8.1: Replace mixed return types with #[\ReturnTypeWillChange] PHP attributes to restore PHP 7.4 compatibility

Also add comment on previous #[\ReturnTypeWillChange]
This commit is contained in:
Molkobain
2022-05-20 16:07:38 +02:00
committed by acognet
parent 7dc4a2776b
commit 6facaec353
5 changed files with 17 additions and 5 deletions

View File

@@ -77,6 +77,7 @@ class DesignDocument extends DOMDocument
*
* @return int
*/
// Return type union is not supported by PHP 7.4, we can remove the following PHP attribute and add the return type once iTop min PHP version is PHP 8.0+
#[\ReturnTypeWillChange]
public function save($filename, $options = 0)
{