File tree Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 1
1
If a PR is approved please ask one of the following maintainers to get it merged:
2
- [ Igor Wulff] ( https://github.com/igorwulff )
3
- [ Dan Wallis] ( https://github.com/fredden )
2
+
3
+ - [ Igor Wulff] ( https://github.com/igorwulff )
4
+ - [ Leon Helmus] ( https://github.com/leonhelmus )
5
+ - [ Rutger Rademakers] ( https://github.com/rutgerrademaker )
Original file line number Diff line number Diff line change 31
31
"php-parallel-lint/php-parallel-lint" : " ^1.2" ,
32
32
"phpro/grumphp-shim" : " ^1.13" ,
33
33
"phpstan/phpstan" : " @stable" ,
34
- "phpunit/phpunit" : " @stable" ,
35
34
"youwe/coding-standard" : " ^3.5.0" ,
36
- "youwe/coding-standard-phpstorm" : " ^2.3.0" ,
37
35
"youwe/composer-dependency-installer" : " ^1.4.0" ,
38
36
"youwe/composer-file-installer" : " ^1.2.0"
39
37
},
38
+ "suggest" : {
39
+ "phpunit/phpunit" : " ^9.6 || ^10.5 || ^11.5 || ^12.0" ,
40
+ "youwe/coding-standard-phpstorm" : " ^2.3.0"
41
+ },
40
42
"require-dev" : {
41
43
"composer/composer" : " @stable" ,
42
- "mikey179/vfsstream" : " @stable"
44
+ "mikey179/vfsstream" : " @stable" ,
45
+ "phpunit/phpunit" : " @stable"
43
46
},
44
47
"replace" : {
45
48
"sensiolabs/security-checker" : " *"
Original file line number Diff line number Diff line change @@ -34,7 +34,13 @@ class PackagesInstaller implements InstallerInterface
34
34
35
35
/** @var array */
36
36
private $ mapping = [
37
- MappingResolver::DEFAULT_MAPPING_TYPE => [],
37
+ MappingResolver::DEFAULT_MAPPING_TYPE => [
38
+ [
39
+ 'name ' => 'phpunit/phpunit ' ,
40
+ 'version ' => '@stable ' ,
41
+ 'dev ' => true
42
+ ]
43
+ ],
38
44
'magento1 ' => [
39
45
[
40
46
'name ' => 'youwe/coding-standard-magento1 ' ,
@@ -99,11 +105,10 @@ public function __construct(
99
105
public function install (): void
100
106
{
101
107
$ type = $ this ->typeResolver ->resolve ();
102
- if (!isset ($ this ->mapping [$ type ])) {
103
- return ;
104
- }
108
+ $ projectTypePackages = $ this ->mapping [$ type ] ?? [];
109
+ $ packagesToInstall = array_merge ($ projectTypePackages , $ this ->mapping [MappingResolver::DEFAULT_MAPPING_TYPE ]);
105
110
106
- foreach ($ this -> mapping [ $ type ] as $ package ) {
111
+ foreach ($ packagesToInstall as $ package ) {
107
112
if (!$ this ->isPackageRequired ($ package ['name ' ], $ package ['version ' ])) {
108
113
$ this ->io ->write (
109
114
sprintf ('Requiring package %s ' , $ package ['name ' ])
You can’t perform that action at this time.
0 commit comments