Skip to content

Commit a2fc78f

Browse files
jderussenicolas-grekas
authored andcommitted
Remove constraint for PHP < 8
1 parent 1900981 commit a2fc78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Filesystem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private static function doRemove(array $files, bool $isRecursive): void
218218
public function chmod($files, int $mode, int $umask = 0000, bool $recursive = false)
219219
{
220220
foreach ($this->toIterable($files) as $file) {
221-
if ((\PHP_VERSION_ID < 80000 || \is_int($mode)) && !self::box('chmod', $file, $mode & ~$umask)) {
221+
if (\is_int($mode) && !self::box('chmod', $file, $mode & ~$umask)) {
222222
throw new IOException(sprintf('Failed to chmod file "%s": ', $file).self::$lastError, 0, null, $file);
223223
}
224224
if ($recursive && is_dir($file) && !is_link($file)) {

0 commit comments

Comments
 (0)