fixed static bug

This commit is contained in:
denisdulici 2017-10-02 16:39:10 +03:00
parent ef7fafbe79
commit 0244d57dc5

View File

@ -17,12 +17,12 @@ class Listener
protected function check($event)
{
// Apply only to the specified alias
if ($event->alias != self::ALIAS) {
if ($event->alias != static::ALIAS) {
return false;
}
// Do not apply to the same or newer versions
if ($event->old >= self::VERSION) {
if ($event->old >= static::VERSION) {
return false;
}