Skip to content

Commit 3b696d7

Browse files
committed
Fix phpstan
1 parent f27dd34 commit 3b696d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

includes/rest-api/class-acf-rest-types-endpoint.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ private function get_source_post_types( $source ) {
162162
array_keys( get_post_types( array(), 'objects' ) ),
163163
array_merge( $core_types, $scf_types )
164164
);
165+
default:
166+
return array();
165167
}
166168
}
167169

0 commit comments

Comments
 (0)