Skip to content

Commit

Permalink
chown and chgrp should also accept int as owner and group
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Jan 17, 2020
1 parent 1d5b4fe commit 0a0d3b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function chmod($files, $mode, $umask = 0000, $recursive = false)
* Change the owner of an array of files or directories.
*
* @param string|iterable $files A filename, an array of files, or a \Traversable instance to change owner
* @param string $user The new owner user name
* @param string|int $user A user name or number
* @param bool $recursive Whether change the owner recursively or not
*
* @throws IOException When the change fails
Expand All @@ -238,7 +238,7 @@ public function chown($files, $user, $recursive = false)
* Change the group of an array of files or directories.
*
* @param string|iterable $files A filename, an array of files, or a \Traversable instance to change group
* @param string $group The group name
* @param string|int $group A group name or number
* @param bool $recursive Whether change the group recursively or not
*
* @throws IOException When the change fails
Expand Down

0 comments on commit 0a0d3b4

Please sign in to comment.