From 33048c5fab4eb81400a7018d3134d49dc304c875 Mon Sep 17 00:00:00 2001 From: Matthias Mullie Date: Thu, 26 Jan 2017 09:12:33 +0100 Subject: [PATCH] Make add chainable Fixes #125 --- src/Minify.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Minify.php b/src/Minify.php index 12043fa..b3b1f3f 100644 --- a/src/Minify.php +++ b/src/Minify.php @@ -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, ... */) { @@ -84,6 +86,8 @@ public function add($data /* $data = null, ... */) // store data $this->data[$key] = $value; } + + return $this; } /**