Skip to content

Commit 43434be

Browse files
committed
fix: phpdoc types for the base object
1 parent bb34f34 commit 43434be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

includes/activity/class-base-object.php

Lines changed: 5 additions & 5 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.
@@ -55,7 +55,7 @@
5555
* @method string[]|null get_summary_map() Gets the summary map property of the object.
5656
* @method array[]|null get_tag() Gets the tag property of the object.
5757
* @method string[]|string|null get_to() Gets the primary recipients of the object.
58-
* @method string get_type() Gets the type of the object.
58+
* @method string[]|string get_type() Gets the type of the object.
5959
* @method string|null get_updated() Gets the date and time the object was updated in ISO 8601 format.
6060
* @method string|null get_url() Gets the URL of the object.
6161
*
@@ -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)