Index: wp-includes/post.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- wp-includes/post.php	(revision b88f2295f857eafe60ab4b4e09d541ebd06c35a9)
+++ wp-includes/post.php	(date 1582142436445)
@@ -1237,7 +1237,7 @@
 function get_post_type_object( $post_type ) {
 	global $wp_post_types;
 
-	if ( ! is_scalar( $post_type ) || empty( $wp_post_types[ $post_type ] ) ) {
+	if ( ! is_string( $post_type ) || empty( $wp_post_types[ $post_type ] ) ) {
 		return null;
 	}
 
