/**
* Check if rewritten class has inherited the parent class.
* If yes we have no conflict. The top class can extend every core class.
* So we cannot check this.
*
* @var array $classes
* @return bool
*/
protected function _isInheritanceConflict(array $classes)
{
$later = null;
foreach (array_reverse($classes) as $class) {
$earlier = ClassUtil::create($class);
try {
if ($later instanceof ClassUtil && $later->exists() && $earlier->exists() && !$later->isA($earlier)) {
return true;
}
} catch (Exception $e) {
return true;
}
$later = $earlier;
}
return false;
}