N°4517 - PHP 8.1: Hide (for now) deprecate notices of mismatching return types when union types as it would not be supported by PHP 7.2 => 7.4

This commit is contained in:
Molkobain
2022-05-18 18:06:01 +02:00
committed by acognet
parent 9d62e87de4
commit 09b0ac38ef
2 changed files with 2 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ class DesignDocument extends DOMDocument
*
* @return int
*/
#[\ReturnTypeWillChange]
public function save($filename, $options = 0)
{
$this->documentElement->setAttribute('xmlns:xsi', "http://www.w3.org/2001/XMLSchema-instance");