Commit 2c3d5ecb authored by catch's avatar catch

Issue #2762549 by alexpott: Part 2: Array was modified by the user comparison...

Issue #2762549 by alexpott: Part 2: Array was modified by the user comparison function in ConfigDependencyManager::getDependentEntities()
parent 5c4f93fd
......@@ -206,7 +206,7 @@ public function sortAll() {
* @return int
* The comparison result for uasort().
*/
protected function sortGraphByWeight(array $a, array $b) {
protected static function sortGraphByWeight(array $a, array $b) {
$weight_cmp = SortArray::sortByKeyInt($a, $b, 'weight');
if ($weight_cmp === 0) {
......@@ -227,7 +227,7 @@ protected function sortGraphByWeight(array $a, array $b) {
* @return int
* The comparison result for uasort().
*/
public function sortGraph(array $a, array $b) {
public static function sortGraph(array $a, array $b) {
$weight_cmp = SortArray::sortByKeyInt($a, $b, 'weight') * -1;
if ($weight_cmp === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment