XMLWriter ReturnTypeWillChange fix
add #[\ReturnTypeWillChange] Attribute to the function writeAttribute (php 8.1 deprecate warning)
This commit is contained in:
parent
fc18246b20
commit
91416e48ac
|
|
@ -171,6 +171,7 @@ class XMLWriter extends \XMLWriter
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function writeAttribute($name, $value)
|
public function writeAttribute($name, $value)
|
||||||
{
|
{
|
||||||
if (is_float($value)) {
|
if (is_float($value)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue