Skip to content

Commit 33048c5

Browse files
Make add chainable
Fixes #125
1 parent be5a618 commit 33048c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Minify.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ public function __construct(/* $data = null, ... */)
5454
* Add a file or straight-up code to be minified.
5555
*
5656
* @param string|string[] $data
57+
*
58+
* @return static
5759
*/
5860
public function add($data /* $data = null, ... */)
5961
{
@@ -84,6 +86,8 @@ public function add($data /* $data = null, ... */)
8486
// store data
8587
$this->data[$key] = $value;
8688
}
89+
90+
return $this;
8791
}
8892

8993
/**

0 commit comments

Comments
 (0)