Skip to content

Commit ddec615

Browse files
Copilotswissspidy
andcommitted
Fix callable type error by changing range helper methods from private to protected
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 5e1bf72 commit ddec615

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Comment_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ public function exists( $args ) {
802802
* @param int|null $end End of the ID range (inclusive), or null for no upper bound.
803803
* @return int[] List of existing comment IDs.
804804
*/
805-
private function get_comment_ids_in_range( int $start, ?int $end ): array {
805+
protected function get_comment_ids_in_range( int $start, ?int $end ): array {
806806
global $wpdb;
807807

808808
if ( null === $end ) {

src/Post_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ private function maybe_convert_hyphenated_date_format( $date_string ) {
12511251
* @param int|null $end End of the ID range (inclusive), or null for no upper bound.
12521252
* @return int[] List of existing post IDs.
12531253
*/
1254-
private function get_post_ids_in_range( int $start, ?int $end ): array {
1254+
protected function get_post_ids_in_range( int $start, ?int $end ): array {
12551255
global $wpdb;
12561256

12571257
if ( null === $end ) {

src/Site_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ private function check_site_ids_and_slug( $args, $assoc_args ) {
14901490
* @param int|null $end End of the ID range (inclusive), or null for no upper bound.
14911491
* @return int[] List of existing site IDs.
14921492
*/
1493-
private function get_site_ids_in_range( int $start, ?int $end ): array {
1493+
protected function get_site_ids_in_range( int $start, ?int $end ): array {
14941494
global $wpdb;
14951495

14961496
if ( null === $end ) {

src/Term_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ private function get_formatter( &$assoc_args ) {
918918
* @param int|null $end End of the ID range (inclusive), or null for no upper bound.
919919
* @return int[] List of existing term IDs.
920920
*/
921-
private function get_term_ids_in_range( string $taxonomy, int $start, ?int $end ): array {
921+
protected function get_term_ids_in_range( string $taxonomy, int $start, ?int $end ): array {
922922
global $wpdb;
923923

924924
if ( null === $end ) {

src/User_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ public function check_password( $args, $assoc_args ) {
15621562
* @param int|null $end End of the ID range (inclusive), or null for no upper bound.
15631563
* @return int[] List of existing user IDs.
15641564
*/
1565-
private function get_user_ids_in_range( int $start, ?int $end ): array {
1565+
protected function get_user_ids_in_range( int $start, ?int $end ): array {
15661566
global $wpdb;
15671567

15681568
if ( null === $end ) {

0 commit comments

Comments
 (0)