pug-php/pug-symfony

View on GitHub

Showing 102 of 102 total issues

Return type of getRenderer() is undeclared type \Pug\Pug
Open

 * @method Pug getRenderer()
Severity: Minor
Found in src/Pug/Symfony/Traits/Filters.php by phan

Reference to constant class from undeclared class \Pug\PugSymfonyBundle\Command\AssetsPublishCommand
Open

            $this->container->get(AssetsPublishCommand::class),

syntax error, unexpected 'PugSymfonyEngine' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open

    protected PugSymfonyEngine $pug;
Severity: Critical
Found in src/Pug/Symfony/Traits/PugRenderer.php by phan

Call to method isFresh from undeclared class \Twig\Loader\LoaderInterface
Open

        return $this->base->isFresh($name, $time);
Severity: Critical
Found in src/Pug/Symfony/MixedLoader.php by phan

Reference to undeclared property \Pug\PugSymfonyBundle\PugSymfonyBundle->container
Open

            $this->container->get(AssetsPublishCommand::class),

Parameter $configurator has undeclared type \Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator
Open

return static function (ContainerConfigurator $configurator): void {

Class extends undeclared class \Twig\Extension\AbstractExtension
Open

class CssExtension extends AbstractExtension
Severity: Critical
Found in src/Pug/Symfony/CssExtension.php by phan

Property \Pug\Symfony\CssExtension->assets has undeclared type \Symfony\Bridge\Twig\Extension\AssetExtension
Open

    protected $assets;
Severity: Minor
Found in src/Pug/Symfony/CssExtension.php by phan

syntax error, unexpected ')', expecting '|' or variable (T_VARIABLE)
Open

        } catch (ReflectionException) {

Call to method addCommands from undeclared class \Symfony\Component\Console\Application
Open

        $application->addCommands([

syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open

        protected readonly KernelInterface $kernel,
Severity: Critical
Found in src/Pug/PugSymfonyEngine.php by phan

Call to method __construct from undeclared class \Twig\TwigFunction
Open

            new TwigFunction('css_url', [$this, 'getUrl']),
Severity: Critical
Found in src/Pug/Symfony/CssExtension.php by phan

Return type of getRenderer() is undeclared type \Pug\Pug
Open

 * @method Pug   getRenderer()
Severity: Minor
Found in src/Pug/Symfony/Traits/Options.php by phan

Class extends undeclared class \Symfony\Component\HttpKernel\DependencyInjection\Extension
Open

class PugExtension extends Extension
Severity: Critical
Found in src/Pug/PugSymfonyBundle/PugExtension.php by phan

Parameter $application has undeclared type \Symfony\Component\Console\Application
Open

    public function registerCommands(Application $application)

Call to method getSourceContext from undeclared class \Twig\Loader\LoaderInterface
Open

        return $this->base->getSourceContext($name);
Severity: Critical
Found in src/Pug/Symfony/MixedLoader.php by phan

Call to method getOption from undeclared class \Pug\Pug
Open

        return $pug->hasOption($name) ? $pug->getOption($name) : $default;
Severity: Critical
Found in src/Pug/Symfony/Traits/Options.php by phan

Call to method setOptions from undeclared class \Pug\Pug
Open

        $this->getRenderer()->setOptions($options);
Severity: Critical
Found in src/Pug/Symfony/Traits/Options.php by phan

@throws type of isFresh has undeclared type \Twig\Error\LoaderError
Open

    public function isFresh(string $name, $time): bool
Severity: Minor
Found in src/Pug/Symfony/MixedLoader.php by phan

Return type of getEngine() is undeclared type \Pug\PugSymfonyEngine
Open

    public function getEngine(): PugSymfonyEngine
Severity: Minor
Found in src/Pug/Symfony/RenderEvent.php by phan
Severity
Category
Status
Source
Language