pug-php/pug-symfony

View on GitHub

Showing 102 of 102 total issues

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

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

Class extends undeclared class \Twig\Extension\AbstractExtension
Open

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

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

        return $this->getRenderer()->getFilter($name);
Severity: Critical
Found in src/Pug/Symfony/Traits/Filters.php by phan

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

        $this->getRenderer()->setOption($name, $value);
Severity: Critical
Found in src/Pug/Symfony/Traits/Options.php by phan

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

    protected ContainerInterface $container;
Severity: Critical
Found in src/Pug/Symfony/Traits/HelpersHandler.php by phan

Parameter $container has undeclared type \Symfony\Component\DependencyInjection\ContainerBuilder
Open

    public function load(array $configs, ContainerBuilder $container)

Call to method __construct from undeclared class \Symfony\Component\DependencyInjection\Loader\PhpFileLoader
Open

        $loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/config'));
Severity: Critical
Found in src/Pug/PugSymfonyBundle/PugExtension.php by phan

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

        $application->addCommands([

Rename "$options" which has the same name as the field declared at line 22.
Open

            $options = $this->getRendererOptions();

Shadowing fields with a local variable is a bad practice that reduces code readability: it makes it confusing to know whether the field or the variable is being used.

Noncompliant Code Example

class Foo {
  public $myField;

  public function doSomething() {
    $myField = 0;
    ...
  }
}

See

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

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

Parameter $event has undeclared type \Symfony\Contracts\EventDispatcher\Event
Open

    public function intercept(Event $event);

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

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

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

Property \Pug\Symfony\Traits\Options->pug has undeclared type \Pug\Pug
Open

 * @property Pug|null $pug
Severity: Minor
Found in src/Pug/Symfony/Traits/Options.php by phan

Call to method getAssetUrl from undeclared class \Symfony\Bridge\Twig\Extension\AssetExtension
Open

        $url = $this->assets->getAssetUrl("$url");
Severity: Critical
Found in src/Pug/Symfony/CssExtension.php by phan

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 load from undeclared class \Symfony\Component\DependencyInjection\Loader\PhpFileLoader
Open

        $loader->load('pug.php');
Severity: Critical
Found in src/Pug/PugSymfonyBundle/PugExtension.php by phan

Call to method loadFromExtension from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open

        $containerBuilder->loadFromExtension($extension->getAlias());

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
Severity
Category
Status
Source
Language