Skip to content

Commit 1fa207e

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

File tree

23 files changed

+57
-59
lines changed

23 files changed

+57
-59
lines changed

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"require-dev": {
4343
"phpunit/phpunit": "^9.5",
4444
"squizlabs/php_codesniffer": "3.6.1",
45-
"symfony/process": ">=5.3.0",
45+
"symfony/process": "~5.4.0",
4646
"mikey179/vfsstream": "*"
4747
},
4848
"replace": {
@@ -69,6 +69,5 @@
6969
"MagentoHackathon\\Composer\\Magento\\Command\\DeployCommand"
7070
],
7171
"class": "MagentoHackathon\\Composer\\Magento\\Plugin"
72-
},
73-
"test_version": "101.500.900"
74-
}
72+
}
73+
}

res/target.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
<target name="mageweb" label="Magento Other web accessible file" uri="." />
1313
<target name="magetest" label="Magento PHPUnit test" uri="./tests" />
1414
<target name="mage" label="Magento other" uri="." />
15-
</targets>
15+
</targets>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ public function createDelegate($source, $dest)
6767
continue;
6868
}
6969
$childSource = $this->removeTrailingSlash($source) . DIRECTORY_SEPARATOR . $item;
70-
$this->create($childSource, substr($destPath, strlen($this->getDestDir())));
70+
$this->create($childSource, substr($destPath, strlen($this->getDestDir()) + 1));
7171
}
7272
return true;
7373
} else {
7474
$destPath = $this->removeTrailingSlash($destPath) . DIRECTORY_SEPARATOR . basename($source);
75-
return $this->create($source, substr($destPath, strlen($this->getDestDir())));
75+
return $this->create($source, substr($destPath, strlen($this->getDestDir()) + 1));
7676
}
7777
}
7878

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public function create($source, $dest)
287287
foreach ($matches as $match) {
288288
$newDest = substr($destPath . '/' . basename($match), strlen($this->getDestDir()));
289289
$newDest = ltrim($newDest, ' \\/');
290-
$this->create(substr($match, strlen($this->getSourceDir())), $newDest);
290+
$this->create(substr($match, strlen($this->getSourceDir()) + 1), $newDest);
291291
}
292292
return true;
293293
}

tests/FullStackTest/home/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77
],
88
"require": {
9-
"magento-hackathon/magento-composer-installer": "*"
9+
"magento/magento-composer-installer": "*"
1010
},
1111
"extra": {
1212
"magento-root-dir": "root"

tests/FullStackTest/magento-modules/composer_1.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"magento/magento-composer-installer": "100.100.100",
55
"theseer/autoload": "~1.14",
66
"zetacomponents/console-tools": "dev-master",
7-
"magento-hackathon/magento-composer-installer-test-issue-87": "1.*",
8-
"magento-hackathon/magento-composer-installer-test-update-file-remove": "1.*",
9-
"magento-hackathon/magento-composer-installer-test-wildcard": "1.*",
10-
"magento-hackathon/magento-composer-installer-test-library": "1.*"
7+
"magento/magento-composer-installer-test-issue-87": "1.*",
8+
"magento/magento-composer-installer-test-update-file-remove": "1.*",
9+
"magento/magento-composer-installer-test-wildcard": "1.*",
10+
"magento/magento-composer-installer-test-library": "1.*"
1111
},
1212
"require-dev": {
13-
"magento-hackathon/composer-command-integrator": "*",
13+
1414
"composer/composer": "dev-main"
1515
},
1616
"repositories": [
@@ -25,7 +25,7 @@
2525
"magento-project": {
2626
"libraryPath": "../htdocs/composer_lib/",
2727
"libraries": {
28-
"magento-hackathon/magento-composer-installer-test-library": {}
28+
"magento/magento-composer-installer-test-library": {}
2929
}
3030
},
3131
"magento-root-dir": "../htdocs/"

tests/FullStackTest/magento-modules/composer_1_copy.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
"magento/magento-composer-installer": "100.100.100",
55
"theseer/autoload": "~1.14",
66
"zetacomponents/console-tools": "dev-master",
7-
"magento-hackathon/magento-composer-installer-test-issue-87": "1.*",
8-
"magento-hackathon/magento-composer-installer-test-update-file-remove": "1.*",
9-
"magento-hackathon/magento-composer-installer-test-wildcard": "1.*",
10-
"magento-hackathon/magento-composer-installer-test-wildcard2": "1.*",
11-
"magento-hackathon/magento-composer-installer-test-library": "1.*"
7+
"magento/magento-composer-installer-test-issue-87": "1.*",
8+
"magento/magento-composer-installer-test-update-file-remove": "1.*",
9+
"magento/magento-composer-installer-test-wildcard": "1.*",
10+
"magento/magento-composer-installer-test-wildcard2": "1.*",
11+
"magento/magento-composer-installer-test-library": "1.*"
1212
},
1313
"require-dev": {
14-
"magento-hackathon/composer-command-integrator": "*",
1514
"composer/composer": "dev-main"
1615
},
1716
"repositories": [
@@ -26,7 +25,7 @@
2625
"magento-project": {
2726
"libraryPath": "../htdocs/composer_lib/",
2827
"libraries": {
29-
"magento-hackathon/magento-composer-installer-test-library": {}
28+
"magento/magento-composer-installer-test-library": {}
3029
}
3130
},
3231
"magento-root-dir": "../htdocs/"

tests/FullStackTest/magento-modules/composer_1_copy_force.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44
"magento/magento-composer-installer": "100.100.100",
55
"theseer/autoload": "~1.14",
66
"zetacomponents/console-tools": "dev-master",
7-
"magento-hackathon/magento-composer-installer-test-issue-87": "1.*",
8-
"magento-hackathon/magento-composer-installer-test-update-file-remove": "1.*",
9-
"magento-hackathon/magento-composer-installer-test-wildcard": "1.*",
10-
"magento-hackathon/magento-composer-installer-test-wildcard2": "1.*",
11-
"magento-hackathon/magento-composer-installer-test-library": "1.*",
12-
"magento-hackathon/magento-composer-installer-test-sort1": "1.*",
13-
"magento-hackathon/magento-composer-installer-test-sort2": "1.*",
14-
"magento-hackathon/magento-composer-installer-test-sort3": "1.*"
7+
"magento/magento-composer-installer-test-issue-87": "1.*",
8+
"magento/magento-composer-installer-test-update-file-remove": "1.*",
9+
"magento/magento-composer-installer-test-wildcard": "1.*",
10+
"magento/magento-composer-installer-test-wildcard2": "1.*",
11+
"magento/magento-composer-installer-test-library": "1.*",
12+
"magento/magento-composer-installer-test-sort1": "1.*",
13+
"magento/magento-composer-installer-test-sort2": "1.*",
14+
"magento/magento-composer-installer-test-sort3": "1.*"
1515
},
1616
"require-dev": {
17-
"magento-hackathon/composer-command-integrator": "*",
1817
"composer/composer": "dev-main"
1918
},
2019
"repositories": [
@@ -27,15 +26,15 @@
2726
"magento-deploystrategy": "copy",
2827
"magento-force": true,
2928
"magento-deploy-sort-priority": {
30-
"magento-hackathon/magento-composer-installer-test-sort1": "200",
31-
"magento-hackathon/magento-composer-installer-test-sort2": "400",
32-
"magento-hackathon/magento-composer-installer-test-sort3": "200"
29+
"magento/magento-composer-installer-test-sort1": "200",
30+
"magento/magento-composer-installer-test-sort2": "400",
31+
"magento/magento-composer-installer-test-sort3": "200"
3332
},
3433
"auto-append-gitignore": true,
3534
"magento-project": {
3635
"libraryPath": "../htdocs/composer_lib/",
3736
"libraries": {
38-
"magento-hackathon/magento-composer-installer-test-library": {}
37+
"magento/magento-composer-installer-test-library": {}
3938
}
4039
},
4140
"magento-root-dir": "../htdocs/"

tests/FullStackTest/magento-modules/composer_2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"magento/magento-composer-installer": "100.100.100",
44
"theseer/autoload": "~1.14",
55
"zetacomponents/console-tools": "dev-master",
6-
"magento-hackathon/magento-composer-installer-test-update-file-remove": "2.*"
6+
"magento/magento-composer-installer-test-update-file-remove": "2.*"
77
},
88
"repositories": [
99
{
@@ -17,7 +17,7 @@
1717
"magento-project": {
1818
"libraryPath": "../htdocs/composer_lib/",
1919
"libraries": {
20-
"magento-hackathon/magento-composer-installer-test-library": {}
20+
"magento/magento-composer-installer-test-library": {}
2121
}
2222
},
2323
"magento-root-dir": "../htdocs/"

tests/FullStackTest/magento-modules/composer_2_copy.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"magento/magento-composer-installer": "100.100.100",
44
"theseer/autoload": "~1.14",
55
"zetacomponents/console-tools": "dev-master",
6-
"magento-hackathon/magento-composer-installer-test-update-file-remove": "2.*"
6+
"magento/magento-composer-installer-test-update-file-remove": "2.*"
77
},
88
"repositories": [
99
{
@@ -17,7 +17,7 @@
1717
"magento-project": {
1818
"libraryPath": "../htdocs/composer_lib/",
1919
"libraries": {
20-
"magento-hackathon/magento-composer-installer-test-library": {}
20+
"magento/magento-composer-installer-test-library": {}
2121
}
2222
},
2323
"magento-root-dir": "../htdocs/"

0 commit comments

Comments
 (0)