src/Viserio/Component/Session/Handler/FileSessionHandler.php
public function gc($maxlifetime): bool
    {
        $files = \array_filter(
            \glob($this->path . \DIRECTORY_SEPARATOR . '*.' . self::FILE_EXTENSION, \GLOB_BRACE),
            'is_file'
        );
        $boolArray = [];

        foreach ($files as $filePath) {
            $filePath = $filePath;

            if (\file_exists($filePath) && (int) \filemtime($filePath) + $maxlifetime < \time()) {
                $boolArray[] = @\unlink($filePath);
            }
        }

        return ! \in_array(false, $boolArray, true);
    }
public function gc($maxlifetime): bool
    {
        $files = \array_filter(
            \glob($this->path . \DIRECTORY_SEPARATOR . '*.' . self::FILE_EXTENSION, \GLOB_BRACE),
            'is_file'
        );
        $boolArray = [];

        foreach ($files as $filePath) {
            $filePath = $filePath;

            if (\file_exists($filePath) && (int) \filemtime($filePath) + $maxlifetime < \time()) {
                $boolArray[] = @\unlink($filePath);
            }
        }

        return ! \in_array(false, $boolArray, true);
    }
{@inheritdoc}