Commit f53c8285 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #564 from ProgerXP/patch-del

Make File::delete() return result of unlink()
parents 57c228ae 1b956607
......@@ -61,11 +61,11 @@ class File {
* Delete a file.
*
* @param string $path
* @return void
* @return bool
*/
public static function delete($path)
{
if (static::exists($path)) @unlink($path);
if (static::exists($path)) return @unlink($path);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment