better instancing

This commit is contained in:
Matthias Pfefferle 2023-07-05 15:33:16 +02:00
parent eed43355b3
commit 1269cc6248

View file

@ -88,7 +88,7 @@ class Post {
* @return void
*/
public static function transform( WP_Post $wp_post ) {
return new self( $wp_post );
return new static( $wp_post );
}
/**