Skip to content

Instantly share code, notes, and snippets.

@westonruter
Created February 5, 2024 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save westonruter/ead39b62ca9fd8502c9f18a659a4fcf1 to your computer and use it in GitHub Desktop.
Save westonruter/ead39b62ca9fd8502c9f18a659a4fcf1 to your computer and use it in GitHub Desktop.
diff --git a/src/wp-includes/class-wp-block-type.php b/src/wp-includes/class-wp-block-type.php
index 33825a7888..d31aaf0b69 100644
--- a/src/wp-includes/class-wp-block-type.php
+++ b/src/wp-includes/class-wp-block-type.php
@@ -11,6 +11,7 @@
* Core class representing a block type.
*
* @since 5.0.0
+ * @property array[] $variations Block variations.
*
* @see register_block_type()
*/
@@ -350,7 +351,7 @@ class WP_Block_Type {
*
* @param string $name Deprecated property name.
*
- * @return string|string[]|null|void The value read from the new property if the first item in the array provided,
+ * @return string|string[]|array[]|null|void The value read from the new property if the first item in the array provided,
* null when value not found, or void when unknown property name provided.
*/
public function __get( $name ) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment