Skip to content

Commit ad8fb0e

Browse files
committed
feat: make TempFile::delete() fluent
1 parent ed39859 commit ad8fb0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/TempFile.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,13 @@ public function refresh(): self
131131
return $this;
132132
}
133133

134-
public function delete(): void
134+
public function delete(): self
135135
{
136136
if (\file_exists($this)) {
137137
\unlink($this);
138138
}
139+
140+
return $this;
139141
}
140142

141143
private static function tempFile(): string

0 commit comments

Comments
 (0)