From d45070e19b2a944fb55ae80d888077f7cb9dab7e Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 22 Jul 2025 23:49:04 +0200 Subject: [PATCH] VariableHelper::is_assignment(): fix parameter description Copy/pasta. Fixed now. --- WordPress/Helpers/VariableHelper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WordPress/Helpers/VariableHelper.php b/WordPress/Helpers/VariableHelper.php index e1076ee42c..264d8e9e85 100644 --- a/WordPress/Helpers/VariableHelper.php +++ b/WordPress/Helpers/VariableHelper.php @@ -209,11 +209,11 @@ public static function is_comparison( File $phpcsFile, $stackPtr, $include_coale * This must point to either a T_VARIABLE or * T_CLOSE_SQUARE_BRACKET token. * @param bool $include_coalesce Optional. Whether or not to regard the null - * coalesce operator - ?? - as a comparison operator. + * coalesce equal operator - `??=` - as an assignment operator. * Defaults to true. - * Null coalesce is a special comparison operator in this - * sense as it doesn't compare a variable to whatever is - * on the other side of the comparison operator. + * Null coalesce is a special assignment operator, in the + * sense that the assignment will only happen if the variable + * being assigned to is currently `null`. * * @return bool Whether the token is a variable being assigned a value. */