File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ class Cache extends BaseCache
23
23
{
24
24
private $ versionParser ;
25
25
private $ symfonyRequire ;
26
- private $ symfonyContraints ;
26
+ private $ symfonyConstraints ;
27
27
private $ io ;
28
28
29
29
public function setSymfonyRequire (string $ symfonyRequire , IOInterface $ io )
30
30
{
31
31
$ this ->versionParser = new VersionParser ();
32
32
$ this ->symfonyRequire = $ symfonyRequire ;
33
- $ this ->symfonyContraints = $ this ->versionParser ->parseConstraints ($ symfonyRequire );
33
+ $ this ->symfonyConstraints = $ this ->versionParser ->parseConstraints ($ symfonyRequire );
34
34
$ this ->io = $ io ;
35
35
}
36
36
@@ -47,7 +47,7 @@ public function read($file)
47
47
48
48
public function removeLegacyTags (array $ data ): array
49
49
{
50
- if (!$ this ->symfonyContraints || !isset ($ data ['packages ' ]['symfony/symfony ' ])) {
50
+ if (!$ this ->symfonyConstraints || !isset ($ data ['packages ' ]['symfony/symfony ' ])) {
51
51
return $ data ;
52
52
}
53
53
$ symfonyVersions = $ data ['packages ' ]['symfony/symfony ' ];
@@ -61,7 +61,7 @@ public function removeLegacyTags(array $data): array
61
61
$ normalizedVersion = $ normalizedVersion ? $ this ->versionParser ->normalize ($ normalizedVersion ) : $ package ['version_normalized ' ];
62
62
$ provider = new Constraint ('== ' , $ normalizedVersion );
63
63
64
- if (!$ this ->symfonyContraints ->matches ($ provider )) {
64
+ if (!$ this ->symfonyConstraints ->matches ($ provider )) {
65
65
if ($ this ->io ) {
66
66
$ this ->io ->writeError (sprintf ('<info>Restricting packages listed in "symfony/symfony" to "%s"</info> ' , $ this ->symfonyRequire ));
67
67
$ this ->io = null ;
You can’t perform that action at this time.
0 commit comments