Skip to content

Commit 93e7d85

Browse files
committed
PHP 8.1 compatibility
- CR changes
1 parent 1fa207e commit 93e7d85

File tree

2 files changed

+2
-2
lines changed
  • src/MagentoHackathon/Composer/Magento/Deploystrategy
  • tests/MagentoHackathon/Composer/Magento/Deploystrategy

2 files changed

+2
-2
lines changed

src/MagentoHackathon/Composer/Magento/Deploystrategy/Symlink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function getRelativePath($from, $to)
141141
}
142142

143143
// magento_dir/targetdir/childdir => ../../module_dir/sourcedir/childdir
144-
$relativePath = str_repeat('../', count($dir) - 1) . implode('/', $file);
144+
$relativePath = str_repeat('../', count($dir)) . implode('/', $file);
145145
return $relativePath;
146146
}
147147
}

tests/MagentoHackathon/Composer/Magento/Deploystrategy/NoneTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testCreate()
3131
$dest = 'test2';
3232

3333
//create the source directory
34-
mkdir($this->_getVfsUrl('sourceDir' . DS . $src), 0777, true);
34+
mkdir($this->_getVfsUrl('sourceDir' . DS . $src), 0755, true);
3535

3636
$this->assertTrue(is_dir($this->_getVfsUrl('sourceDir' . DS . $src)));
3737
$this->assertFalse(is_dir($this->_getVfsUrl('destDir' . DS . $dest)));

0 commit comments

Comments
 (0)