Skip to content

Commit 6b4a5bf

Browse files
committed
Add ReturnTypeWillChange annotations
1 parent 182c311 commit 6b4a5bf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/WP_Post_IDs_Iterator.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,31 @@ public function __construct( $post_ids, $limit = null ) {
1818
}
1919
}
2020

21+
#[\ReturnTypeWillChange]
2122
public function current() {
2223
return $this->results[ $this->index_in_results ];
2324
}
2425

26+
#[\ReturnTypeWillChange]
2527
public function key() {
2628
return $this->global_index;
2729
}
2830

31+
#[\ReturnTypeWillChange]
2932
public function next() {
3033
++$this->index_in_results;
3134
++$this->global_index;
3235
}
3336

37+
#[\ReturnTypeWillChange]
3438
public function rewind() {
3539
$this->results = array();
3640
$this->global_index = 0;
3741
$this->index_in_results = 0;
3842
$this->ids_left = $this->post_ids;
3943
}
4044

45+
#[\ReturnTypeWillChange]
4146
public function valid() {
4247
if ( isset( $this->results[ $this->index_in_results ] ) ) {
4348
return true;

0 commit comments

Comments
 (0)