summaryrefslogtreecommitdiff
path: root/ext/phar/tests/bug77022.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/bug77022.phpt')
-rw-r--r--ext/phar/tests/bug77022.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/phar/tests/bug77022.phpt b/ext/phar/tests/bug77022.phpt
index 40d908f1ee..4f5795842d 100644
--- a/ext/phar/tests/bug77022.phpt
+++ b/ext/phar/tests/bug77022.phpt
@@ -13,9 +13,9 @@ var_dump(decoct(umask()));
$sFile = tempnam(__DIR__, 'test77022');
var_dump(decoct(stat($sFile)['mode']));
-foreach([Phar::TAR => 'tar', Phar::ZIP => 'zip'] as $mode => $ext) {
+foreach([Phar::TAR => 'tar', Phar::ZIP => 'zip'] as $format => $ext) {
clearstatcache();
- $phar = new PharData(__DIR__ . '/test77022.' . $ext, null, null, $mode);
+ $phar = new PharData(__DIR__ . '/test77022.' . $ext, format: $format);
$phar->addFile($sFile, 'test-file-phar');
$phar->addFromString("test-from-string", 'test-file-phar');
$phar->extractTo(__DIR__);
@@ -33,4 +33,4 @@ string(6) "100600"
string(6) "100600"
string(6) "100644"
string(6) "100600"
-string(6) "100644" \ No newline at end of file
+string(6) "100644"