*/
public function denormalize($data, $class, $format = null, array $context = array())
{
- if (!is_string($data)) {
- throw new InvalidArgumentException(sprintf('Data expected to be a string, %s given.', gettype($data)));
+ if (!\is_string($data)) {
+ throw new InvalidArgumentException(sprintf('Data expected to be a string, %s given.', \gettype($data)));
}
if (!$this->isISO8601($data)) {