pug-php/pug-symfony

View on GitHub

Showing 102 of 102 total issues

Space before opening parenthesis of function call prohibited
Open

        return array_unique(array_map(static fn ($path) => realpath($path) ?: $path, $paths));
Severity: Minor
Found in src/Pug/PugSymfonyEngine.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

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

Space before opening parenthesis of function call prohibited
Open

                static fn ($path) => $path !== $baseDir,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly ?RequestStack $stack = null,
Severity: Minor
Found in src/Pug/PugSymfonyEngine.php by phpcodesniffer

Space before opening parenthesis of function call prohibited
Open

                static fn (string $interceptorClass) => $container->get($interceptorClass),
Severity: Minor
Found in src/Pug/PugSymfonyEngine.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 16
Open

                static fn ($path) => $path !== $baseDir,

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

Property \Pug\Symfony\MixedLoader->base has undeclared type \Twig\Loader\LoaderInterface
Open

    protected $base;
Severity: Minor
Found in src/Pug/Symfony/MixedLoader.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

syntax error, unexpected ','
Open

    'assets:publish',

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

        $containerBuilder->registerExtension($extension);

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

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

Parameter $base has undeclared type \Twig\Loader\LoaderInterface
Open

    public function __construct(LoaderInterface $base)
Severity: Minor
Found in src/Pug/Symfony/MixedLoader.php by phan

Class extends undeclared class \Symfony\Contracts\EventDispatcher\Event
Open

class RenderEvent extends Event
Severity: Critical
Found in src/Pug/Symfony/RenderEvent.php by phan

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

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

    public function build(ContainerBuilder $containerBuilder): void

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

return static function (ContainerConfigurator $configurator): void {

Class implements undeclared interface \Twig\Loader\LoaderInterface
Open

class MixedLoader implements LoaderInterface
Severity: Critical
Found in src/Pug/Symfony/MixedLoader.php by phan

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

        return $this->base->getCacheKey($name);
Severity: Critical
Found in src/Pug/Symfony/MixedLoader.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
Severity
Category
Status
Source
Language