Skip to content

Commit 7f25351

Browse files
committed
[Filesystem] Remove always true condition
1 parent 83ba006 commit 7f25351

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
@@ -208,7 +208,7 @@ private static function doRemove(array $files, bool $isRecursive): void
208208
public function chmod(string|iterable $files, int $mode, int $umask = 0000, bool $recursive = false)
209209
{
210210
foreach ($this->toIterable($files) as $file) {
211-
if (\is_int($mode) && !self::box('chmod', $file, $mode & ~$umask)) {
211+
if (!self::box('chmod', $file, $mode & ~$umask)) {
212212
throw new IOException(sprintf('Failed to chmod file "%s": ', $file).self::$lastError, 0, null, $file);
213213
}
214214
if ($recursive && is_dir($file) && !is_link($file)) {

0 commit comments

Comments
 (0)