Skip to content

Commit c2e280b

Browse files
committed
Fix a typo ("contraints" -> "constraints")
1 parent d6f5fed commit c2e280b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Cache.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ class Cache extends BaseCache
2323
{
2424
private $versionParser;
2525
private $symfonyRequire;
26-
private $symfonyContraints;
26+
private $symfonyConstraints;
2727
private $io;
2828

2929
public function setSymfonyRequire(string $symfonyRequire, IOInterface $io)
3030
{
3131
$this->versionParser = new VersionParser();
3232
$this->symfonyRequire = $symfonyRequire;
33-
$this->symfonyContraints = $this->versionParser->parseConstraints($symfonyRequire);
33+
$this->symfonyConstraints = $this->versionParser->parseConstraints($symfonyRequire);
3434
$this->io = $io;
3535
}
3636

@@ -47,7 +47,7 @@ public function read($file)
4747

4848
public function removeLegacyTags(array $data): array
4949
{
50-
if (!$this->symfonyContraints || !isset($data['packages']['symfony/symfony'])) {
50+
if (!$this->symfonyConstraints || !isset($data['packages']['symfony/symfony'])) {
5151
return $data;
5252
}
5353
$symfonyVersions = $data['packages']['symfony/symfony'];
@@ -61,7 +61,7 @@ public function removeLegacyTags(array $data): array
6161
$normalizedVersion = $normalizedVersion ? $this->versionParser->normalize($normalizedVersion) : $package['version_normalized'];
6262
$provider = new Constraint('==', $normalizedVersion);
6363

64-
if (!$this->symfonyContraints->matches($provider)) {
64+
if (!$this->symfonyConstraints->matches($provider)) {
6565
if ($this->io) {
6666
$this->io->writeError(sprintf('<info>Restricting packages listed in "symfony/symfony" to "%s"</info>', $this->symfonyRequire));
6767
$this->io = null;

0 commit comments

Comments
 (0)