From 1948031f45215a188d7c71aa62c190b0bc8c04da Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Thu, 2 Feb 2023 14:18:04 +1100 Subject: [PATCH] Note the need to add public methods to docblock. --- includes/classes/DistributorPost.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/classes/DistributorPost.php b/includes/classes/DistributorPost.php index 74bc4425b..da0a6f666 100644 --- a/includes/classes/DistributorPost.php +++ b/includes/classes/DistributorPost.php @@ -22,7 +22,9 @@ * repeating code to determine if `switch_to_blog()` is required. * * When adding new methods to this class, please ensure that the method is - * protected to ensure the magic method is used. + * protected to ensure the magic method is used. If the method is intended to + * be public, please add it to the `@method` docblock below to ensure it is + * shown in IDEs. * * @since x.x.x *