| @@ -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 | /** |