@@ -138,8 +138,8 @@ public function exists($files)
138
138
* Sets access and modification time of file.
139
139
*
140
140
* @param string|iterable $files A filename, an array of files, or a \Traversable instance to create
141
- * @param int $time The touch time as a Unix timestamp
142
- * @param int $atime The access time as a Unix timestamp
141
+ * @param int|null $time The touch time as a Unix timestamp, if not supplied the current system time is used
142
+ * @param int|null $atime The access time as a Unix timestamp, if not supplied the current system time is used
143
143
*
144
144
* @throws IOException When touch fails
145
145
*/
@@ -194,7 +194,7 @@ public function remove($files)
194
194
* @param int $umask The mode mask (octal)
195
195
* @param bool $recursive Whether change the mod recursively or not
196
196
*
197
- * @throws IOException When the change fail
197
+ * @throws IOException When the change fails
198
198
*/
199
199
public function chmod ($ files , $ mode , $ umask = 0000 , $ recursive = false )
200
200
{
@@ -215,7 +215,7 @@ public function chmod($files, $mode, $umask = 0000, $recursive = false)
215
215
* @param string $user The new owner user name
216
216
* @param bool $recursive Whether change the owner recursively or not
217
217
*
218
- * @throws IOException When the change fail
218
+ * @throws IOException When the change fails
219
219
*/
220
220
public function chown ($ files , $ user , $ recursive = false )
221
221
{
@@ -242,7 +242,7 @@ public function chown($files, $user, $recursive = false)
242
242
* @param string $group The group name
243
243
* @param bool $recursive Whether change the group recursively or not
244
244
*
245
- * @throws IOException When the change fail
245
+ * @throws IOException When the change fails
246
246
*/
247
247
public function chgrp ($ files , $ group , $ recursive = false )
248
248
{
@@ -524,14 +524,14 @@ public function makePathRelative($endPath, $startPath)
524
524
* - existing files in the target directory will be overwritten, except if they are newer (see the `override` option)
525
525
* - files in the target directory that do not exist in the source directory will not be deleted (see the `delete` option)
526
526
*
527
- * @param string $originDir The origin directory
528
- * @param string $targetDir The target directory
529
- * @param \Traversable $iterator Iterator that filters which files and directories to copy
530
- * @param array $options An array of boolean options
531
- * Valid options are:
532
- * - $options['override'] If true, target files newer than origin files are overwritten (see copy(), defaults to false)
533
- * - $options['copy_on_windows'] Whether to copy files instead of links on Windows (see symlink(), defaults to false)
534
- * - $options['delete'] Whether to delete files that are not in the source directory (defaults to false)
527
+ * @param string $originDir The origin directory
528
+ * @param string $targetDir The target directory
529
+ * @param \Traversable|null $iterator Iterator that filters which files and directories to copy, if null a recursive iterator is created
530
+ * @param array $options An array of boolean options
531
+ * Valid options are:
532
+ * - $options['override'] If true, target files newer than origin files are overwritten (see copy(), defaults to false)
533
+ * - $options['copy_on_windows'] Whether to copy files instead of links on Windows (see symlink(), defaults to false)
534
+ * - $options['delete'] Whether to delete files that are not in the source directory (defaults to false)
535
535
*
536
536
* @throws IOException When file type is unknown
537
537
*/
0 commit comments