Skip to content

Commit 0a0d3b4

Browse files
committed
chown and chgrp should also accept int as owner and group
1 parent 1d5b4fe commit 0a0d3b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Filesystem.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function chmod($files, $mode, $umask = 0000, $recursive = false)
211211
* Change the owner of an array of files or directories.
212212
*
213213
* @param string|iterable $files A filename, an array of files, or a \Traversable instance to change owner
214-
* @param string $user The new owner user name
214+
* @param string|int $user A user name or number
215215
* @param bool $recursive Whether change the owner recursively or not
216216
*
217217
* @throws IOException When the change fails
@@ -238,7 +238,7 @@ public function chown($files, $user, $recursive = false)
238238
* Change the group of an array of files or directories.
239239
*
240240
* @param string|iterable $files A filename, an array of files, or a \Traversable instance to change group
241-
* @param string $group The group name
241+
* @param string|int $group A group name or number
242242
* @param bool $recursive Whether change the group recursively or not
243243
*
244244
* @throws IOException When the change fails

0 commit comments

Comments
 (0)