*/
protected function validateType($value)
{
- if (!is_bool($value)) {
- $ex = new InvalidTypeException(sprintf(
- 'Invalid type for path "%s". Expected boolean, but got %s.',
- $this->getPath(),
- gettype($value)
- ));
+ if (!\is_bool($value)) {
+ $ex = new InvalidTypeException(sprintf('Invalid type for path "%s". Expected boolean, but got %s.', $this->getPath(), \gettype($value)));
if ($hint = $this->getInfo()) {
$ex->addHint($hint);
}