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

        if (\is_resource($contents)) {
            return $this->writeStream($path, $contents, $config);
        }

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

        if (\is_resource($contents)) {
            return $this->writeStream($path, $contents, $config);
        }

        return \is_int(@\file_put_contents($path, $contents, $lock));
    }
{@inheritdoc}