From c0d2b8cb1e94aaddbe0d2391e7b19bcf65e507da Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 21 Apr 2020 15:42:50 +0300 Subject: [PATCH] feat(core): update Comparator for flextype version validation --- src/flextype/core/Plugins/Plugins.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flextype/core/Plugins/Plugins.php b/src/flextype/core/Plugins/Plugins.php index 7ed03ec5..62c3431c 100755 --- a/src/flextype/core/Plugins/Plugins.php +++ b/src/flextype/core/Plugins/Plugins.php @@ -263,7 +263,7 @@ class Plugins { foreach ($plugins as $plugin_name => $plugin_data) { if (isset($plugin_data['manifest']['dependencies']['flextype']) && - Comparator::equalTo($plugin_data['manifest']['dependencies']['flextype'], '0.9.7')) { + Comparator::equalTo($plugin_data['manifest']['dependencies']['flextype'], $this->flextype['registry']->get('flextype.manifest.version'))) { $plugins[$plugin_name] = $plugin_data; } else { unset($plugins[$plugin_name]);