pug-php/twig

View on GitHub

Showing 146 of 146 total issues

Call to method getAttributes from undeclared class \Phug\Formatter\Element\AssignmentElement
Open

                $attributes = iterator_to_array($attributesAssignment->getAttributes());

Parameter $formatter has undeclared type ?\Phug\Formatter
Open

    public function __construct(Formatter $formatter = null)

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

        if ($element->belongsTo($this->getOption('inline_tags'))) {

Class uses undeclared trait \Phug\Formatter\Partial\AssignmentHelpersTrait
Open

class TwigXmlFormat extends AbstractTwigFormat

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

        $this

Reference to undeclared constant \Phug\Formatter\Format\TwigXmlFormat::SAVE_VALUE
Open

                'save_value'                => static::SAVE_VALUE,

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

    protected function isBlockTag(MarkupInterface $element)

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

            if (in_array(strtolower($value->getValue()), ['false', 'null', 'undefined'])) {

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

        if ($name instanceof ExpressionElement) {

Call to method isChecked from undeclared class \Phug\Formatter\Element\ExpressionElement
Open

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

Parameter $element has undeclared type \Phug\Formatter\Element\MarkupElement
Open

    protected function formatPairTagChildren(MarkupElement $element)

Argument 1 (element) is \Phug\Formatter\Element\MarkupElement but \Phug\Formatter\Format\TwigXmlFormat::formatElementChildren() takes \Phug\Formatter\ElementInterface defined at /code/src/Phug/Formatter/AbstractTwigFormat.php:143
Open

            $this->formatElementChildren($element)

Parameter $element has undeclared type \Phug\Formatter\Element\AssignmentElement
Open

    protected function formatAssignmentElement(AssignmentElement $element)

Argument 1 (compiler) is \Phug\Util\ModuleContainerInterface but \Phug\PugToTwig::enableTwigFormatter() takes \Phug\CompilerInterface defined at /code/src/Phug/PugToTwig.php:42
Open

        PugToTwig::enableTwigFormatter($container);
Severity: Minor
Found in src/Phug/TwigExtension.php by phan

Call to undeclared method \Phug\Formatter\AbstractTwigFormat::getOption
Open

        $commentPattern = $this->getOption('debug');
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.php by phan

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

            $isSelfClosing || $element->isAutoClosed() || $element->belongsTo(

Checking instanceof against undeclared class \Phug\Formatter\MarkupInterface
Open

                if ($element instanceof MarkupInterface) {

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

        if ($value instanceof TextElement && $nonEmptyAttribute && (!$value->getValue() || $value->getValue() === '')) {

Call to method isCodeBlock from undeclared class \Phug\Formatter\Element\CodeElement
Open

            $previous->isCodeBlock()
Severity: Critical
Found in src/Phug/Formatter/AbstractTwigFormat.php by phan

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

        $this->addPatterns([
Severity
Category
Status
Source
Language