Skip to content

Commit 27575bc

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: fix passing arguments to call_user_func_array() on PHP 8 [Filesystem] fix test on PHP 8
2 parents ff1f352 + 8e6eff5 commit 27575bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function remove($files)
199199
public function chmod($files, $mode, $umask = 0000, $recursive = false)
200200
{
201201
foreach ($this->toIterable($files) as $file) {
202-
if (true !== @chmod($file, $mode & ~$umask)) {
202+
if ((\PHP_VERSION_ID < 80000 || \is_int($mode)) && true !== @chmod($file, $mode & ~$umask)) {
203203
throw new IOException(sprintf('Failed to chmod file "%s".', $file), 0, null, $file);
204204
}
205205
if ($recursive && is_dir($file) && !is_link($file)) {

0 commit comments

Comments
 (0)