Skip to content

Commit f40fafe

Browse files
Menrathobenland
andauthored
Fix: PHPdoc types in Base_Objects (#2451)
Co-authored-by: Konstantin Obenland <[email protected]>
1 parent 32c34f5 commit f40fafe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

includes/activity/class-base-object.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
*
2222
* @see https://www.w3.org/TR/activitystreams-core/#object
2323
*
24-
* @method string|null get_attachment() Gets the attachment property of the object.
25-
* @method string|null get_attributed_to() Gets the entity attributed as the original author.
24+
* @method array|string|null get_attachment() Gets the attachment property of the object.
25+
* @method array|string|null get_attributed_to() Gets the entity attributed as the original author.
2626
* @method string|null get_audience() Gets the total population of entities for which the object can be considered relevant.
2727
* @method string[]|string|null get_bcc() Gets the private secondary audience of the object.
2828
* @method string[]|string|null get_bto() Gets the private primary audience of the object.
@@ -40,7 +40,7 @@
4040
* @method string[]|string|null get_in_reply_to() Gets the objects this object is in reply to.
4141
* @method array|null get_interaction_policy() Gets the interaction policy property of the object.
4242
* @method array|null get_likes() Gets the collection of likes for this object.
43-
* @method string|null get_location() Gets the physical or logical locations associated with the object.
43+
* @method array|string|null get_location() Gets the physical or logical locations associated with the object.
4444
* @method string|null get_media_type() Gets the MIME media type of the content property.
4545
* @method string|null get_name() Gets the natural language name of the object.
4646
* @method string[]|null get_name_map() Gets the name map property of the object.
@@ -81,7 +81,7 @@
8181
* @method Base_Object set_in_reply_to( string|string[] $in_reply_to ) Sets the is in reply to property of the object.
8282
* @method Base_Object set_interaction_policy( array|null $policy ) Sets the interaction policy property of the object.
8383
* @method Base_Object set_likes( array $likes ) Sets the collection of likes for this object.
84-
* @method Base_Object set_location( string $location ) Sets the physical or logical locations associated with the object.
84+
* @method Base_Object set_location( array|string $location ) Sets the physical or logical locations associated with the object.
8585
* @method Base_Object set_media_type( string $media_type ) Sets the MIME media type of the content property.
8686
* @method Base_Object set_name( string $name ) Sets the natural language name of the object.
8787
* @method Base_Object set_name_map( array|null $name_map ) Sets the name map property of the object.

0 commit comments

Comments
 (0)