Refactoring #19

Merged
linos merged 6 commits from refactoring into main 2024-07-05 13:29:14 +02:00
Showing only changes of commit 735926745b - Show all commits

View file

@ -146,9 +146,9 @@ class Setup {
* @param mixed $wp_object The WordPress object to transform.
* @param string $object_class The class of the object to transform.
*
* @returns \Activitypub\Transformer\Base
* @return \Activitypub\Transformer\Base|null
*/
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base {
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base|null {
// If the current WordPress object is not a post (e.g., a WP_Comment), don't change the transformer.
if ( 'WP_Post' !== $object_class ) {
return $transformer;