`foreach ($conflicts as $x => $package)`
geht nicht?