diff --git a/CHANGELOG.md b/CHANGELOG.md index b00b543..eb9d1fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 1.3.0 +### Added +- Check on version if versions do not match require package again. + ## 1.2.0 ### Changed - Vendor name of the module to Youwe. diff --git a/src/DependencyInstaller.php b/src/DependencyInstaller.php index 34a0376..0397461 100644 --- a/src/DependencyInstaller.php +++ b/src/DependencyInstaller.php @@ -109,6 +109,7 @@ public function installPackage(string $name, string $version, bool $dev = true) if (array_key_exists($node, $this->definition) && array_key_exists($name, $this->definition[$node]) + && $this->definition[$node][$name] === $version ) { return; }