pug-php/pug-symfony

View on GitHub
src/Pug/Exceptions/ReservedVariable.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Pug\Exceptions;

use RuntimeException;
use Throwable;

class ReservedVariable extends RuntimeException
{
    public function __construct($variableName, $code = 0, Throwable $previous = null)
    {
        parent::__construct("\"$variableName\" is a reserved variable name, you can't overwrite it.", $code, $previous);
    }
}