Skip to content

Commit f2a655c

Browse files
committed
Update parameter description for $stackPtr in ConstantsHelper::is_use_of_global_constant()
The parameter description incorrectly mentioned that `$strackPtr` should be the pointer to a function call token while it actually should be the pointer to a T_STRING token.
1 parent 00e9af7 commit f2a655c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Helpers/ConstantsHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class ConstantsHelper {
4242
* - The `$phpcsFile` parameter was added.
4343
*
4444
* @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
45-
* @param int $stackPtr The position of the function call token.
45+
* @param int $stackPtr The position of the T_STRING token.
4646
*
4747
* @return bool
4848
*/

0 commit comments

Comments
 (0)