File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ foreach ($services as $service => $hasChange) {
238
238
239
239
// Fix branch-alias in composer.json
240
240
if ($ hasChange ) {
241
- $ lastVersion = null ;
241
+ $ lastPackageVersion = null ;
242
242
$ level = 1 ;
243
243
switch ($ changeLog [4 ]) {
244
244
case '### BC-BREAK ' :
@@ -249,22 +249,22 @@ foreach ($services as $service => $hasChange) {
249
249
}
250
250
foreach (\array_slice ($ changeLog , 4 ) as $ line ) {
251
251
if (strpos ($ line , '## ' ) === 0 ) {
252
- $ lastVersion = substr ($ line , 3 );
252
+ $ lastPackageVersion = substr ($ line , 3 );
253
253
254
254
break ;
255
255
}
256
256
}
257
- if (empty ($ lastVersion )) {
257
+ if (empty ($ lastPackageVersion )) {
258
258
console_log ('unable to find the next version in CHANGELOG ' );
259
259
260
260
exit (1 );
261
261
}
262
- if (!preg_match ('/^\d+\.\d+\.\d+$/ ' , $ lastVersion )) {
262
+ if (!preg_match ('/^\d+\.\d+\.\d+$/ ' , $ lastPackageVersion )) {
263
263
console_log ('the last version in CHANGELOG is not a valid version ' );
264
264
265
265
exit (1 );
266
266
}
267
- $ parts = explode ('. ' , $ lastVersion );
267
+ $ parts = explode ('. ' , $ lastPackageVersion );
268
268
$ level = 1 ;
269
269
if (0 === (int ) $ parts [0 ]) {
270
270
$ level = min (2 , $ level + 1 );
You can’t perform that action at this time.
0 commit comments