Skip to content

Commit 57861c3

Browse files
keradusnicolas-grekas
authored andcommitted
chore: PHP CS Fixer - restore PHP / PHPUnit rulesets
1 parent 94fb640 commit 57861c3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tests/FinderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ public function testAccessDeniedException()
15901590

15911591
// make 'foo' directory non-readable
15921592
$testDir = self::$tmpDir.\DIRECTORY_SEPARATOR.'foo';
1593-
chmod($testDir, 0333);
1593+
chmod($testDir, 0o333);
15941594

15951595
if (false === $couldRead = is_readable($testDir)) {
15961596
try {
@@ -1607,7 +1607,7 @@ public function testAccessDeniedException()
16071607
}
16081608

16091609
// restore original permissions
1610-
chmod($testDir, 0777);
1610+
chmod($testDir, 0o777);
16111611
clearstatcache(true, $testDir);
16121612

16131613
if ($couldRead) {
@@ -1626,7 +1626,7 @@ public function testIgnoredAccessDeniedException()
16261626

16271627
// make 'foo' directory non-readable
16281628
$testDir = self::$tmpDir.\DIRECTORY_SEPARATOR.'foo';
1629-
chmod($testDir, 0333);
1629+
chmod($testDir, 0o333);
16301630

16311631
if (false === ($couldRead = is_readable($testDir))) {
16321632
$this->assertIterator($this->toAbsolute([
@@ -1648,7 +1648,7 @@ public function testIgnoredAccessDeniedException()
16481648
}
16491649

16501650
// restore original permissions
1651-
chmod($testDir, 0777);
1651+
chmod($testDir, 0o777);
16521652
clearstatcache(true, $testDir);
16531653

16541654
if ($couldRead) {

Tests/Iterator/VfsIteratorTestTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function url_stat(string $url): array
108108
$isDir = $providerFx($path, 'is_dir');
109109
\assert(\is_bool($isDir));
110110

111-
return ['mode' => $isDir ? 0040755 : 0100644];
111+
return ['mode' => $isDir ? 0o040755 : 0o100644];
112112
}
113113
});
114114
self::$vfsProviders = &$vfsWrapperClass::$vfsProviders;

0 commit comments

Comments
 (0)