@@ -83,8 +83,8 @@ public function copy($originFile, $targetFile, $overwriteNewerFiles = false)
83
83
/**
84
84
* Creates a directory recursively.
85
85
*
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
88
88
*
89
89
* @throws IOException On any directory creation failure
90
90
*/
@@ -111,7 +111,7 @@ public function mkdir($dirs, $mode = 0777)
111
111
/**
112
112
* Checks the existence of files or directories.
113
113
*
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
115
115
*
116
116
* @return bool true if the file exists, false otherwise
117
117
*/
@@ -135,9 +135,9 @@ public function exists($files)
135
135
/**
136
136
* Sets access and modification time of file.
137
137
*
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
141
141
*
142
142
* @throws IOException When touch fails
143
143
*/
@@ -154,7 +154,7 @@ public function touch($files, $time = null, $atime = null)
154
154
/**
155
155
* Removes files or directories.
156
156
*
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
158
158
*
159
159
* @throws IOException When removal fails
160
160
*/
@@ -190,10 +190,10 @@ public function remove($files)
190
190
/**
191
191
* Change mode for an array of files or directories.
192
192
*
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
197
197
*
198
198
* @throws IOException When the change fail
199
199
*/
@@ -212,9 +212,9 @@ public function chmod($files, $mode, $umask = 0000, $recursive = false)
212
212
/**
213
213
* Change the owner of an array of files or directories.
214
214
*
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
218
218
*
219
219
* @throws IOException When the change fail
220
220
*/
@@ -239,9 +239,9 @@ public function chown($files, $user, $recursive = false)
239
239
/**
240
240
* Change the group of an array of files or directories.
241
241
*
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
245
245
*
246
246
* @throws IOException When the change fail
247
247
*/
0 commit comments