fix function calls that are static
Some checks failed
PHPUnit / PHPUnit – PHP (push) Failing after 56s

This commit is contained in:
André Menrath 2024-09-24 14:31:09 +02:00
parent da9e71008d
commit 98dc3c3839

View file

@ -234,9 +234,9 @@ class Setup {
// Get the transformer for a specific event plugins event-post type.
foreach ( $this->active_event_plugins as $event_plugin ) {
if ( $wp_object->post_type === $event_plugin->get_post_type() ) {
$transformer_class = $event_plugin->get_activitypub_event_transformer_class();
$transformer_class = $event_plugin::get_activitypub_event_transformer_class();
if ( class_exists( $transformer_class ) ) {
return new $transformer_class( $wp_object, $event_plugin->get_event_category_taxonomy() );
return new $transformer_class( $wp_object, $event_plugin::get_event_category_taxonomy() );
}
}
}