@@ -45,14 +45,14 @@ class Configuration
4545
4646 /**
4747 * Shared folders between deploys. Commonly used for `media`, `var/import` folders etc.
48- * @var SharedFolder []
48+ * @var string []
4949 */
5050 private $ sharedFolders = [];
5151
5252 /**
5353 * Files shared between deploys. Commonly used for database configurations etc.
5454 *
55- * @var SharedFile []
55+ * @var string []
5656 */
5757 private $ sharedFiles = [];
5858
@@ -162,8 +162,7 @@ public function getStages(): array
162162 }
163163
164164 /**
165- * @param SharedFolder[]|string[] $folders
166- * @return $this
165+ * @param string[] $folders
167166 */
168167 public function setSharedFolders (array $ folders ): self
169168 {
@@ -174,30 +173,22 @@ public function setSharedFolders(array $folders): self
174173 return $ this ;
175174 }
176175
177- /**
178- * @param SharedFolder|string $folder
179- * @return $this
180- */
181- public function addSharedFolder ($ folder ): self
176+ public function addSharedFolder (string $ folder ): self
182177 {
183- if (!$ folder instanceof SharedFolder) {
184- $ folder = new SharedFolder ($ folder );
185- }
186178 $ this ->sharedFolders [] = $ folder ;
187179 return $ this ;
188180 }
189181
190182 /**
191- * @return SharedFolder []
183+ * @return string []
192184 */
193185 public function getSharedFolders (): array
194186 {
195187 return $ this ->sharedFolders ;
196188 }
197189
198190 /**
199- * @param SharedFile[]|string[] $files
200- * @return $this
191+ * @param string[] $files
201192 */
202193 public function setSharedFiles (array $ files ): self
203194 {
@@ -208,21 +199,14 @@ public function setSharedFiles(array $files): self
208199 return $ this ;
209200 }
210201
211- /**
212- * @param SharedFile|string $file
213- * @return $this
214- */
215- public function addSharedFile ($ file ): self
202+ public function addSharedFile (string $ file ): self
216203 {
217- if (!$ file instanceof SharedFile) {
218- $ file = new SharedFile ($ file );
219- }
220204 $ this ->sharedFiles [] = $ file ;
221205 return $ this ;
222206 }
223207
224208 /**
225- * @return SharedFile []
209+ * @return string []
226210 */
227211 public function getSharedFiles (): array
228212 {
0 commit comments