Skip to content

Commit f7b9ed6

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: fix passing arguments to call_user_func_array() on PHP 8 allow Doctrine DBAL 3 [Filesystem] fix test on PHP 8
2 parents afbce4e + 27575bc commit f7b9ed6

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
@@ -194,7 +194,7 @@ public function remove($files)
194194
public function chmod($files, int $mode, int $umask = 0000, bool $recursive = false)
195195
{
196196
foreach ($this->toIterable($files) as $file) {
197-
if (true !== @chmod($file, $mode & ~$umask)) {
197+
if ((\PHP_VERSION_ID < 80000 || \is_int($mode)) && true !== @chmod($file, $mode & ~$umask)) {
198198
throw new IOException(sprintf('Failed to chmod file "%s".', $file), 0, null, $file);
199199
}
200200
if ($recursive && is_dir($file) && !is_link($file)) {

0 commit comments

Comments
 (0)