Skip to content

Commit 17c0a88

Browse files
committed
Another try at fixing the conditional logic
1 parent 3c5cb60 commit 17c0a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WP_CLI/SearchReplacer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private function _run( $data, $serialised, $recursion_level = 0, $visited_data =
9090
}
9191
}
9292

93-
elseif ( $this->recurse_objects && is_object( $data ) ) {
93+
elseif ( $this->recurse_objects && ( is_object( $data ) || $data instanceof \__PHP_Incomplete_Class ) ) {
9494
if ( $data instanceof \__PHP_Incomplete_Class ) {
9595
$array = new ArrayObject( $data );
9696
\WP_CLI::warning(

0 commit comments

Comments
 (0)