File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function synchronize(array $phpPackages): bool
43
43
// Remove all links and add again only the existing packages
44
44
try {
45
45
$ didAddLink = $ this ->removePackageJsonLinks ((new JsonFile ($ this ->rootDir .'/package.json ' ))->read ());
46
- } catch (ParsingException ) {
46
+ } catch (ParsingException $ e ) {
47
47
// if package.json is invalid (possible during a recipe upgrade), we can't update the file
48
48
return false ;
49
49
}
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ public function testUpdate()
169
169
['cache:clear ' => 'other-cmd ' , 'do:cool-stuff ' => 'symfony-cmd ' ]
170
170
);
171
171
172
- $ this -> assertSame ([ ' composer.json ' => <<<EOF
172
+ $ expectedComposerJsonOriginal = <<<EOF
173
173
{
174
174
"scripts": {
175
175
"auto-scripts": {
@@ -185,10 +185,10 @@ public function testUpdate()
185
185
}
186
186
}
187
187
188
- EOF
189
- ], $ recipeUpdate ->getOriginalFiles ());
188
+ EOF ;
189
+ $ this -> assertSame ([ ' composer.json ' => $ expectedComposerJsonOriginal ], $ recipeUpdate ->getOriginalFiles ());
190
190
191
- $ this -> assertSame ([ ' composer.json ' => <<<EOF
191
+ $ expectedComposerJsonNew = <<<EOF
192
192
{
193
193
"scripts": {
194
194
"auto-scripts": {
@@ -205,7 +205,7 @@ public function testUpdate()
205
205
}
206
206
}
207
207
208
- EOF
209
- ], $ recipeUpdate ->getNewFiles ());
208
+ EOF ;
209
+ $ this -> assertSame ([ ' composer.json ' => $ expectedComposerJsonNew ], $ recipeUpdate ->getNewFiles ());
210
210
}
211
211
}
Original file line number Diff line number Diff line change 2
2
"type" : " project" ,
3
3
"license" : " proprietary" ,
4
4
"require" : {
5
- "php" : " ^8.0 " ,
6
- "symfony/console" : " 6.0 .*"
5
+ "php" : " >=7.1 " ,
6
+ "symfony/console" : " 5.4 .*"
7
7
},
8
8
"config" : {
9
9
"allow-plugins" : {
You can’t perform that action at this time.
0 commit comments