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