Merge branch 'next-minor' into next-major

This commit is contained in:
Dylan K. Taylor
2022-08-14 18:49:19 +01:00
21 changed files with 329 additions and 117 deletions

View File

@@ -38,6 +38,7 @@ class ReversePriorityQueue extends \SplPriorityQueue{
*
* @return int
*/
#[\ReturnTypeWillChange]
public function compare($priority1, $priority2){
//TODO: this will crash if non-numeric priorities are used
return (int) -($priority1 - $priority2);