MDL-73424 general: Internal methods must have same type as parent
Otherwise the error is thrown in PHP8.1
This commit is contained in:
@@ -56,9 +56,9 @@ class sortedcontentqueue extends \SPLPriorityQueue {
|
||||
*
|
||||
* @param int $key1
|
||||
* @param int $key2
|
||||
* @return bool
|
||||
* @return int
|
||||
*/
|
||||
public function compare($key1 , $key2) {
|
||||
public function compare($key1 , $key2): int {
|
||||
$record1 = $this->contents[$key1];
|
||||
$record2 = $this->contents[$key2];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user