Skip to content

Commit 4c8c11b

Browse files
authored
Merge pull request #2561 from WordPress/feature/variablehelper-fix-docs
2 parents a9b8a4b + d45070e commit 4c8c11b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WordPress/Helpers/VariableHelper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,11 @@ public static function is_comparison( File $phpcsFile, $stackPtr, $include_coale
209209
* This must point to either a T_VARIABLE or
210210
* T_CLOSE_SQUARE_BRACKET token.
211211
* @param bool $include_coalesce Optional. Whether or not to regard the null
212-
* coalesce operator - ?? - as a comparison operator.
212+
* coalesce equal operator - `??=` - as an assignment operator.
213213
* Defaults to true.
214-
* Null coalesce is a special comparison operator in this
215-
* sense as it doesn't compare a variable to whatever is
216-
* on the other side of the comparison operator.
214+
* Null coalesce is a special assignment operator, in the
215+
* sense that the assignment will only happen if the variable
216+
* being assigned to is currently `null`.
217217
*
218218
* @return bool Whether the token is a variable being assigned a value.
219219
*/

0 commit comments

Comments
 (0)