Problem/Motivation
Database::startLog() calls Log::findCaller() that calls debug_backtrace() that broke uasort() with
Warning: uasort(): Array was modified by the user comparison function in Drupal\shortcut\Entity\ShortcutSet->getShortcuts() (line 125 of core/modules/shortcut/src/Entity/ShortcutSet.php).
because of this bug: https://bugs.php.net/bug.php?id=50688
Proposed resolution
- put a @ before uasort in ShortcutSet::getShortcuts()
- use debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) instead of debug_backtrace() (but then we cannot collect args)
Remaining tasks
Decide which solution is better.
User interface changes
None
API changes
None
Data model changes
With solution 2 we don't collect function args.