Skip to content

Commit 44a7259

Browse files
authored
Merge pull request #49 from perftools/xxx
Disable fileSaver if output file is not set
2 parents 9ee896c + 5c6b425 commit 44a7259

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Saver/FileSaver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct($file)
1414

1515
public function isSupported()
1616
{
17-
return is_writable(dirname($this->file));
17+
return $this->file && is_writable(dirname($this->file));
1818
}
1919

2020
public function save(array $data)

0 commit comments

Comments
 (0)