Are you trying to get WordPress to return content from multiple post types with that function call? e.g. pages and custom_post_type content?
If so, you should switch to get_posts
and specify the post types as an array:
$pages = get_posts([
'post_type' => ['page', 'custom-post-type']
]);