src/Viserio/Component/Filesystem/Filesystem.php
public function appendStream(string $path, $resource, array $config = []): bool
    {
        if ($this->has($path)) {
            $config['flags'] = isset($config['flags']) ? $config['flags'] | \FILE_APPEND : \FILE_APPEND;

            return $this->updateStream($path, $resource, $config);
        }

        return $this->writeStream($path, $resource, $config);
    }
public function appendStream(string $path, $resource, array $config = []): bool
    {
        if ($this->has($path)) {
            $config['flags'] = isset($config['flags']) ? $config['flags'] | \FILE_APPEND : \FILE_APPEND;

            return $this->updateStream($path, $resource, $config);
        }

        return $this->writeStream($path, $resource, $config);
    }
{@inheritdoc}