src/Viserio/Component/Filesystem/Filesystem.php
public function write(string $path, string $contents, array $config = []): bool
    {
        $lock = isset($config['lock']) ? \LOCK_EX : 0;

        if (! \is_int(@\file_put_contents($path, $contents, $lock))) {
            return false;
        }

        if (isset($config['visibility'])) {
            $this->setVisibility($path, $config['visibility']);
        }

        return true;
    }
public function write(string $path, string $contents, array $config = []): bool
    {
        $lock = isset($config['lock']) ? \LOCK_EX : 0;

        if (! \is_int(@\file_put_contents($path, $contents, $lock))) {
            return false;
        }

        if (isset($config['visibility'])) {
            $this->setVisibility($path, $config['visibility']);
        }

        return true;
    }
{@inheritdoc}