pug-php/twig

View on GitHub

Showing 146 of 146 total issues

Call to method getOption from undeclared class \Phug\Formatter
Open

            $defaults[$option] = ($formatter->hasOption($option) ? $formatter->getOption($option) : null) ?: [];

Parameter $element has undeclared type \Phug\Formatter\ElementInterface
Open

    public function __invoke(ElementInterface $element)

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::getOption
Open

        $handlers = $this->getOption('attribute_assignments');

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::provideArrayEscape (Did you mean expr->provideTwigArrayEscape())
Open

        return $this->provideArrayEscape();

Call to method isAutoClosed from undeclared class \Phug\Formatter\MarkupInterface
Open

            $isSelfClosing = $element->isAutoClosed();

Parameter $element has undeclared type \Phug\Formatter\MarkupInterface
Open

    public function isWhiteSpaceSensitive(MarkupInterface $element)

Checking instanceof against undeclared class \Phug\Formatter\Element\TextElement
Open

                    !($child instanceof TextElement) ||

Call to method getValue from undeclared class \Phug\Formatter\Element\AttributeElement
Open

        $value = $element->getValue();

Checking instanceof against undeclared class \Phug\Renderer
Open

        if ($container instanceof Renderer) {
Severity: Critical
Found in src/Phug/TwigExtension.php by phan

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::pattern
Open

            $bufferVariable = $this->pattern('buffer_variable');

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::formatCode
Open

                    $this->formatCode($name->getValue(), $name->isChecked())

Argument 1 (element) is \Phug\Formatter\Element\MarkupElement but \Phug\Formatter\Format\TwigXmlFormat::isBlockTag() takes \Phug\Formatter\MarkupInterface defined at /code/src/Phug/Formatter/Format/TwigXmlFormat.php:118
Open

                    $this->isBlockTag($element)

Reference to undeclared class \Phug\Formatter\Format\XhtmlFormat
Open

        parent::__construct($formatter);
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.php by phan

Call to undeclared method \Phug\Formatter\Format\TwigXhtmlFormat::pattern
Open

            $this->pattern('doctype_language'),

Call to method belongsTo from undeclared class \Phug\Formatter\MarkupInterface
Open

        return $element->belongsTo($this->getOption('white_space_sensitive_tags'));

Call to method getValue from undeclared class \Phug\Formatter\Element\TextElement
Open

                    trim($child->getValue()) !== ''

Call to method getName from undeclared class \Phug\Formatter\MarkupInterface
Open

                    $element->getName().' is a self closing element: '.

Call to method getChildAt from undeclared class \Phug\Formatter\Element\MarkupElement
Open

        $firstChild = $element->getChildAt(0);

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::getOption
Open

        $handlers = $this->getOption('assignment_handlers');

Call to undeclared method \Phug\Formatter\Format\TwigXmlFormat::formatCode
Open

                        $arguments[] = $this->formatCode($value, $checked);
Severity
Category
Status
Source
Language