diff --git a/src/Search/Updaters/SearchUpdater.php b/src/Search/Updaters/SearchUpdater.php index 5d84047..f3a8b45 100644 --- a/src/Search/Updaters/SearchUpdater.php +++ b/src/Search/Updaters/SearchUpdater.php @@ -105,8 +105,8 @@ class SearchUpdater 'command' => $command, 'fields' => array() ); - } // Otherwise update the class label if it's more specific than the currently recorded one - elseif (is_subclass_of($class, $writes[$key]['class'])) { + } elseif (is_subclass_of($class, $writes[$key]['class'])) { + // Otherwise update the class label if it's more specific than the currently recorded one $writes[$key]['class'] = $class; }