summaryrefslogtreecommitdiffstats
path: root/Aufgabe06/vendor/symfony/config/Symfony/Component/Config/Definition/ScalarNode.php
diff options
context:
space:
mode:
Diffstat (limited to 'Aufgabe06/vendor/symfony/config/Symfony/Component/Config/Definition/ScalarNode.php')
-rw-r--r--Aufgabe06/vendor/symfony/config/Symfony/Component/Config/Definition/ScalarNode.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/Aufgabe06/vendor/symfony/config/Symfony/Component/Config/Definition/ScalarNode.php b/Aufgabe06/vendor/symfony/config/Symfony/Component/Config/Definition/ScalarNode.php
deleted file mode 100644
index 854c265..0000000
--- a/Aufgabe06/vendor/symfony/config/Symfony/Component/Config/Definition/ScalarNode.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Config\Definition;
-
-use Symfony\Component\Config\Definition\Exception\InvalidTypeException;
-
-/**
- * This node represents a scalar value in the config tree.
- *
- * The following values are considered scalars:
- * * booleans
- * * strings
- * * null
- * * integers
- * * floats
- *
- * @author Johannes M. Schmitt <schmittjoh@gmail.com>
- */
-class ScalarNode extends VariableNode
-{
- /**
- * {@inheritdoc}
- */
- protected function validateType($value)
- {
- if (!is_scalar($value) && null !== $value) {
- $ex = new InvalidTypeException(sprintf(
- 'Invalid type for path "%s". Expected scalar, but got %s.',
- $this->getPath(),
- gettype($value)
- ));
- if ($hint = $this->getInfo()) {
- $ex->addHint($hint);
- }
- $ex->setPath($this->getPath());
-
- throw $ex;
- }
- }
-}