Skip to content

Commit

Permalink
Fix illegal offset type in isset or empty
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Feb 25, 2016
1 parent c750450 commit 89cf36b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Repository/VcsPackageFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ protected function satisfyVersion(Link $require, $normalizedVersion)
$constraintSame = $this->versionParser->parseConstraints($normalizedVersion);
$sameVersion = (bool) $require->getConstraint()->matches($constraintSame);

$normalizedVersion = FilterUtil::getVersionConstraint($normalizedVersion, $this->versionParser);
$constraint = FilterUtil::getVersionConstraint($normalizedVersion, $this->versionParser);
$consNormalizedVersion = FilterUtil::getVersionConstraint($normalizedVersion, $this->versionParser);
$constraint = FilterUtil::getVersionConstraint($consNormalizedVersion->getPrettyString(), $this->versionParser);

return (bool) $require->getConstraint()->matches($constraint) || $sameVersion;
}
Expand Down

0 comments on commit 89cf36b

Please sign in to comment.