diff options
Diffstat (limited to 'vendor/sabre/xml/lib/Serializer')
-rw-r--r-- | vendor/sabre/xml/lib/Serializer/functions.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vendor/sabre/xml/lib/Serializer/functions.php b/vendor/sabre/xml/lib/Serializer/functions.php index 8d0330558..23f22d4c8 100644 --- a/vendor/sabre/xml/lib/Serializer/functions.php +++ b/vendor/sabre/xml/lib/Serializer/functions.php @@ -4,7 +4,6 @@ declare(strict_types=1); namespace Sabre\Xml\Serializer; -use InvalidArgumentException; use Sabre\Xml\Writer; use Sabre\Xml\XmlSerializable; @@ -197,12 +196,12 @@ function standardSerializer(Writer $writer, $value) $writer->write($item); $writer->endElement(); } else { - throw new InvalidArgumentException('The writer does not know how to serialize arrays with keys of type: '.gettype($name)); + throw new \InvalidArgumentException('The writer does not know how to serialize arrays with keys of type: '.gettype($name)); } } } elseif (is_object($value)) { - throw new InvalidArgumentException('The writer cannot serialize objects of class: '.get_class($value)); + throw new \InvalidArgumentException('The writer cannot serialize objects of class: '.get_class($value)); } elseif (!is_null($value)) { - throw new InvalidArgumentException('The writer cannot serialize values of type: '.gettype($value)); + throw new \InvalidArgumentException('The writer cannot serialize values of type: '.gettype($value)); } } |