src/Asserts/Categories/AssertFileTrait.php
public static function assertIsWritable(string $path, Throwable $exception): string
    {
        static::makeAssertion(\is_writable($path), $exception);
        return $path;
    }
public static function assertIsWritable(string $path, Throwable $exception): string
    {
        static::makeAssertion(\is_writable($path), $exception);
        return $path;
    }
public static function assertIsWritable ( string $ path , Throwable $ exception ) : string { static :: makeAssertion ( \ is_writable ( $ path ) , $ exception ) ; return $ path ; }
Asserts that the given path is writable.

@param string $path The path to check that must be writable.
@param Throwable $exception The exception to throw if the assertion fails.
@return string The path if the assertion does not fail.
Asserts that the given path is writable .