Skip to content

Commit

Permalink
Make add chainable
Browse files Browse the repository at this point in the history
Fixes #125
  • Loading branch information
matthiasmullie committed Jan 26, 2017
1 parent be5a618 commit 33048c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Minify.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public function __construct(/* $data = null, ... */)
* Add a file or straight-up code to be minified.
*
* @param string|string[] $data
*
* @return static
*/
public function add($data /* $data = null, ... */)
{
Expand Down Expand Up @@ -84,6 +86,8 @@ public function add($data /* $data = null, ... */)
// store data
$this->data[$key] = $value;
}

return $this;
}

/**
Expand Down

0 comments on commit 33048c5

Please sign in to comment.