File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,20 @@ class Cache extends BaseCache
16
16
17
17
public function read ($ file )
18
18
{
19
- $ content = parent ::read ($ file );
20
- if (0 === strpos ($ file , 'provider-symfony$ ' )) {
21
- $ content = json_encode ($ this ->removeLegacyTags (json_decode ($ content , true )));
19
+ $ content = parent ::read ($ file );
20
+ foreach (array_keys (self ::$ lowestTags ) as $ key ) {
21
+ list ($ provider , ) = explode ('/ ' , $ key , 2 );
22
+ if (0 === strpos ($ file , "provider- $ provider \$" )) {
23
+ $ content = json_encode ($ this ->removeLegacyTags (json_decode ($ content , true )));
24
+ break ;
25
+ }
22
26
}
23
27
return $ content ;
24
28
}
25
29
26
30
public function removeLegacyTags (array $ data )
27
31
{
28
- foreach (self ::$ lowestTags as $ package => $ lowestVersion ) {
32
+ foreach (self ::$ lowestTags as $ package => $ lowestVersion ) {
29
33
if (!isset ($ data ['packages ' ][$ package ][$ lowestVersion ])) {
30
34
continue ;
31
35
}
You can’t perform that action at this time.
0 commit comments