# windpress/3.2.90/vendor/symfony/yaml/ParserState.php

WindPress – Tailwind CSS integration for WordPress, version 3.2.90. 63 lines.

- Page: https://pluginprobe.com/plugins/windpress/3.2.90/code/vendor/symfony/yaml/ParserState.php
- Raw: https://pluginprobe.com/plugins/windpress/3.2.90/raw/vendor/symfony/yaml/ParserState.php
- Modified: 2026-09-16T09:39:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/windpress/3.2.90/code/vendor/symfony/yaml/ParserState.php#L10-L20`.

```php
<?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 WindPressDeps\Symfony\Component\Yaml;

use WindPressDeps\Symfony\Component\Yaml\Exception\ParseException;
use WindPressDeps\Symfony\Component\Yaml\Tag\TaggedValue;
/**
 * @internal
 */
final class ParserState
{
    public $maxNestingLevel = Parser::DEFAULT_MAX_NESTING_LEVEL;
    public $currentNestingLevel = 0;
    public $maxAliasesForCollections = Parser::DEFAULT_MAX_ALIASES_FOR_COLLECTIONS;
    public $collectionAliasCount = 0;
    public $aliasesEnabled = \true;
    public function reset(): void
    {
        $this->currentNestingLevel = 0;
        $this->collectionAliasCount = 0;
        $this->aliasesEnabled = \true;
    }
    public function enterNestingLevel(int $line, ?string $snippet, ?string $filename): void
    {
        if (++$this->currentNestingLevel > $this->maxNestingLevel) {
            --$this->currentNestingLevel;
            throw new ParseException(sprintf('Maximum nesting depth of %d exceeded.', $this->maxNestingLevel), $line, $snippet, $filename);
        }
    }
    public function leaveNestingLevel(): void
    {
        if ($this->currentNestingLevel > 0) {
            --$this->currentNestingLevel;
        }
    }
    /**
     * @param mixed $refValue
     */
    public function countAlias($refValue, int $line, ?string $snippet, ?string $filename): void
    {
        if (!$this->aliasesEnabled) {
            throw new ParseException('Aliases are disabled.', $line, $snippet, $filename);
        }
        if ($refValue instanceof TaggedValue) {
            $refValue = $refValue->getValue();
        }
        if (!\is_array($refValue) && !$refValue instanceof \stdClass) {
            return;
        }
        if (++$this->collectionAliasCount > $this->maxAliasesForCollections) {
            throw new ParseException(sprintf('Maximum number of collection aliases (%d) exceeded. This limit can be increased via the Parser constructor.', $this->maxAliasesForCollections), $line, $snippet, $filename);
        }
    }
}

```
