Skip to content

Commit 0d8a11b

Browse files
committed
Fix more PHP 8.1 compat features
1 parent f7f4dcd commit 0d8a11b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function __construct($out = STDOUT)
5050
}
5151

5252
$this->out = $out;
53+
$this->depth = 0;
5354
}
5455

5556
/**

src/test/php/org/bovigo/vfs/vfsStreamUmaskTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function createDirectoryUsingStreamWithExplicit0()
146146
{
147147
$root = vfsStream::setup();
148148
vfsStream::umask(0022);
149-
mkdir(vfsStream::url('root/newdir'), null);
149+
mkdir(vfsStream::url('root/newdir'), 0000);
150150
$this->assertEquals(0000, $root->getChild('newdir')->getPermissions());
151151
}
152152

0 commit comments

Comments
 (0)