fix version compare check on listner.php

This commit is contained in:
Mohit Panjwani
2019-11-16 12:41:46 +05:30
parent 5d70832f20
commit 61a7aea0cd

View File

@ -15,10 +15,10 @@ class Listener
protected function check($event) protected function check($event)
{ {
// Do not apply to the same or newer versions // Do not apply to the same or newer versions
if (version_compare($event->old, static::VERSION, '>=')) { if (version_compare(static::VERSION, $event->old, '>')) {
return false;
}
return true; return true;
} }
return false;
}
} }