@@ -83,8 +83,8 @@ public function copy($originFile, $targetFile, $overwriteNewerFiles = false)
8383 /**
8484 * Creates a directory recursively.
8585 *
86- * @param string|array|\Traversable $dirs The directory path
87- * @param int $mode The directory mode
86+ * @param string|iterable $dirs The directory path
87+ * @param int $mode The directory mode
8888 *
8989 * @throws IOException On any directory creation failure
9090 */
@@ -111,7 +111,7 @@ public function mkdir($dirs, $mode = 0777)
111111 /**
112112 * Checks the existence of files or directories.
113113 *
114- * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to check
114+ * @param string|iterable $files A filename, an array of files, or a \Traversable instance to check
115115 *
116116 * @return bool true if the file exists, false otherwise
117117 */
@@ -135,9 +135,9 @@ public function exists($files)
135135 /**
136136 * Sets access and modification time of file.
137137 *
138- * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to create
139- * @param int $time The touch time as a Unix timestamp
140- * @param int $atime The access time as a Unix timestamp
138+ * @param string|iterable $files A filename, an array of files, or a \Traversable instance to create
139+ * @param int $time The touch time as a Unix timestamp
140+ * @param int $atime The access time as a Unix timestamp
141141 *
142142 * @throws IOException When touch fails
143143 */
@@ -154,7 +154,7 @@ public function touch($files, $time = null, $atime = null)
154154 /**
155155 * Removes files or directories.
156156 *
157- * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to remove
157+ * @param string|iterable $files A filename, an array of files, or a \Traversable instance to remove
158158 *
159159 * @throws IOException When removal fails
160160 */
@@ -190,10 +190,10 @@ public function remove($files)
190190 /**
191191 * Change mode for an array of files or directories.
192192 *
193- * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change mode
194- * @param int $mode The new mode (octal)
195- * @param int $umask The mode mask (octal)
196- * @param bool $recursive Whether change the mod recursively or not
193+ * @param string|iterable $files A filename, an array of files, or a \Traversable instance to change mode
194+ * @param int $mode The new mode (octal)
195+ * @param int $umask The mode mask (octal)
196+ * @param bool $recursive Whether change the mod recursively or not
197197 *
198198 * @throws IOException When the change fail
199199 */
@@ -212,9 +212,9 @@ public function chmod($files, $mode, $umask = 0000, $recursive = false)
212212 /**
213213 * Change the owner of an array of files or directories.
214214 *
215- * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change owner
216- * @param string $user The new owner user name
217- * @param bool $recursive Whether change the owner recursively or not
215+ * @param string|iterable $files A filename, an array of files, or a \Traversable instance to change owner
216+ * @param string $user The new owner user name
217+ * @param bool $recursive Whether change the owner recursively or not
218218 *
219219 * @throws IOException When the change fail
220220 */
@@ -239,9 +239,9 @@ public function chown($files, $user, $recursive = false)
239239 /**
240240 * Change the group of an array of files or directories.
241241 *
242- * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change group
243- * @param string $group The group name
244- * @param bool $recursive Whether change the group recursively or not
242+ * @param string|iterable $files A filename, an array of files, or a \Traversable instance to change group
243+ * @param string $group The group name
244+ * @param bool $recursive Whether change the group recursively or not
245245 *
246246 * @throws IOException When the change fail
247247 */
0 commit comments