@@ -137,8 +137,8 @@ public function exists($files)
137137 * Sets access and modification time of file.
138138 *
139139 * @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
142142 *
143143 * @throws IOException When touch fails
144144 */
@@ -193,7 +193,7 @@ public function remove($files)
193193 * @param int $umask The mode mask (octal)
194194 * @param bool $recursive Whether change the mod recursively or not
195195 *
196- * @throws IOException When the change fail
196+ * @throws IOException When the change fails
197197 */
198198 public function chmod ($ files , $ mode , $ umask = 0000 , $ recursive = false )
199199 {
@@ -214,7 +214,7 @@ public function chmod($files, $mode, $umask = 0000, $recursive = false)
214214 * @param string $user The new owner user name
215215 * @param bool $recursive Whether change the owner recursively or not
216216 *
217- * @throws IOException When the change fail
217+ * @throws IOException When the change fails
218218 */
219219 public function chown ($ files , $ user , $ recursive = false )
220220 {
@@ -241,7 +241,7 @@ public function chown($files, $user, $recursive = false)
241241 * @param string $group The group name
242242 * @param bool $recursive Whether change the group recursively or not
243243 *
244- * @throws IOException When the change fail
244+ * @throws IOException When the change fails
245245 */
246246 public function chgrp ($ files , $ group , $ recursive = false )
247247 {
@@ -519,14 +519,14 @@ public function makePathRelative($endPath, $startPath)
519519 * - existing files in the target directory will be overwritten, except if they are newer (see the `override` option)
520520 * - files in the target directory that do not exist in the source directory will not be deleted (see the `delete` option)
521521 *
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)
530530 *
531531 * @throws IOException When file type is unknown
532532 */
0 commit comments