@@ -14,8 +14,8 @@ class SplPriorityQueue implements Iterator, Countable
14
14
/** @tentative-return-type */
15
15
public function compare (mixed $ priority1 , mixed $ priority2 ): int {}
16
16
17
- /** @return true */
18
- public function insert (mixed $ value , mixed $ priority ) {} // TODO make return type void
17
+ /** @tentative- return-type */
18
+ public function insert (mixed $ value , mixed $ priority ): true {}
19
19
20
20
/** @tentative-return-type */
21
21
public function setExtractFlags (int $ flags ): int {}
@@ -66,10 +66,10 @@ public function next(): void {}
66
66
public function valid (): bool {}
67
67
68
68
/**
69
- * @return bool
69
+ * @tentative- return-type
70
70
* @implementation-alias SplHeap::recoverFromCorruption
71
71
*/
72
- public function recoverFromCorruption () {} // TODO make return type void
72
+ public function recoverFromCorruption (): true {}
73
73
74
74
/**
75
75
* @tentative-return-type
@@ -90,7 +90,7 @@ abstract class SplHeap implements Iterator, Countable
90
90
public function extract (): mixed {}
91
91
92
92
/** @tentative-return-type */
93
- public function insert (mixed $ value ): bool {}
93
+ public function insert (mixed $ value ): true {}
94
94
95
95
/** @tentative-return-type */
96
96
public function top (): mixed {}
@@ -117,7 +117,7 @@ public function next(): void {}
117
117
public function valid (): bool {}
118
118
119
119
/** @tentative-return-type */
120
- public function recoverFromCorruption (): bool {}
120
+ public function recoverFromCorruption (): true {}
121
121
122
122
/** @tentative-return-type */
123
123
abstract protected function compare (mixed $ value1 , mixed $ value2 ): int ;
0 commit comments