src/Viserio/Provider/Twig/Command/CleanCommand.php
public function handle(): int
    {
        $cacheDir = $this->resolvedOptions['engines']['twig']['options']['cache'];

        (new Filesystem())->remove($cacheDir);

        @\rmdir($cacheDir);

        if (\is_dir($cacheDir)) {
            $this->error('Twig cache failed to be cleaned.');

            return 1;
        }

        $this->info('Twig cache cleaned.');

        return 0;
    }
public function handle(): int
    {
        $cacheDir = $this->resolvedOptions['engines']['twig']['options']['cache'];

        (new Filesystem())->remove($cacheDir);

        @\rmdir($cacheDir);

        if (\is_dir($cacheDir)) {
            $this->error('Twig cache failed to be cleaned.');

            return 1;
        }

        $this->info('Twig cache cleaned.');

        return 0;
    }
{@inheritdoc}