PluginProbe
ActivityPub / 3.2.2
ActivityPub v3.2.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/transformer/class-base.php +3 -2 2.1.13.2.2 View file →
@@ -1,7 +1,8 @@
1 1 <?php
2 2 namespace Activitypub\Transformer;
3 3
4 +use WP_Error;
4 5 use WP_Post;
5 6 use WP_Comment;
6 7
7 8 use Activitypub\Activity\Activity;
@@ -29,11 +30,11 @@
29 30 * This helps to chain the output of the Transformer.
30 31 *
31 32 * @param WP_Post|WP_Comment $wp_object The WordPress object
32 33 *
33 - * @return Base_Object
34 + * @return Base
34 35 */
35 - public static function transform( $object ) {
36 + public static function transform( $object ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound
36 37 return new static( $object );
37 38 }
38 39
39 40 /**