- $ex = new InvalidTypeException(sprintf(
- 'Invalid type for path "%s". Expected scalar, but got %s.',
- $this->getPath(),
- gettype($value)
- ));
+ $ex = new InvalidTypeException(sprintf('Invalid type for path "%s". Expected scalar, but got %s.', $this->getPath(), \gettype($value)));