for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Borobudur-Config package.
*
* (c) Hexacodelabs <http://hexacodelabs.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Borobudur\Config\Definition;
use Borobudur\Config\Exception\InvalidTypeException;
/**
* @author Iqbal Maulana <[email protected]>
* @created 8/10/15
class ScalarNode extends VariableNode
{
* {@inheritdoc}
protected function validateType($value)
if (null !== $value && false === is_scalar($value)) {
throw InvalidTypeException::invalidExpectedType($this->getPath(), 'scalar', $value);
}