File tree 1 file changed +4
-4
lines changed
src/Symfony/Component/AssetMapper/ImportMap
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -133,13 +133,13 @@ public static function convertNpmConstraint(string $versionConstraint): ?string
133
133
foreach ($ segments as $ segment ) {
134
134
if (str_contains ($ segment , '- ' ) && !preg_match ('/-(alpha|beta|rc)\./ ' , $ segment )) {
135
135
// This is a range
136
- list ( $ start , $ end) = explode ('- ' , $ segment );
137
- $ processedSegments [] = '>= ' . self ::cleanVersionSegment (trim ($ start )) . ' <= ' . self ::cleanVersionSegment (trim ($ end ));
136
+ [ $ start , $ end] = explode ('- ' , $ segment );
137
+ $ processedSegments [] = '>= ' . self ::cleanVersionSegment (trim ($ start )). ' <= ' . self ::cleanVersionSegment (trim ($ end ));
138
138
} elseif (preg_match ('/^~(\d+\.\d+)$/ ' , $ segment , $ matches )) {
139
139
// Handle the tilde when only major.minor specified
140
140
$ baseVersion = $ matches [1 ];
141
- $ processedSegments [] = '>= ' . $ baseVersion . '.0 ' ;
142
- $ processedSegments [] = '< ' . $ baseVersion [0 ] . '. ' . ($ baseVersion [2 ] + 1 ) . '.0 ' ;
141
+ $ processedSegments [] = '>= ' . $ baseVersion. '.0 ' ;
142
+ $ processedSegments [] = '< ' . $ baseVersion [0 ]. '. ' . ($ baseVersion [2 ] + 1 ). '.0 ' ;
143
143
} else {
144
144
$ processedSegments [] = self ::cleanVersionSegment ($ segment );
145
145
}
You can’t perform that action at this time.
0 commit comments