From c258a2a1b48ec12d07a5e2bb8a261c4f0978b2fa Mon Sep 17 00:00:00 2001 From: Leon Helmus Date: Tue, 12 Apr 2022 10:12:23 +0200 Subject: [PATCH] Check on version if versions do not match require package again. --- CHANGELOG.md | 4 ++++ src/DependencyInstaller.php | 1 + 2 files changed, 5 insertions(+) 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; }