Skip to content

Commit 92492aa

Browse files
committed
Update docblocks
1 parent 18df81f commit 92492aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

WordPress/Sniffs/Security/EscapeOutputSniff.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ public function process_matched_token( $stackPtr, $group_name, $matched_content
445445
* Check whether each relevant part of an arbitrary group of token is output escaped.
446446
*
447447
* @since 3.0.0 Split off from the process_token() method.
448+
* @since 3.1.0 Add the check for static methods.
448449
*
449450
* @param int $start The position to start checking from.
450451
* @param int $end The position to stop the check at.
@@ -958,6 +959,8 @@ private function walk_match_expression( $stackPtr, $code ) {
958959
/**
959960
* Check if the current \T_STRING token is a part of the static method call.
960961
*
962+
* @since 3.1.0 Add the method to check for a static method call.
963+
*
961964
* @param int $stackPtr Current \T_STRING token pointer.
962965
*
963966
* @return bool True if it is, false if it isn't.
@@ -987,6 +990,8 @@ private function is_static_method_call( $stackPtr ) {
987990
* If it's not, that's the end of the name, if it is, call the method again
988991
* until you find the end of it and return this value.
989992
*
993+
* @since 3.1.0 Add the method that will get the pointer of the FQCN.
994+
*
990995
* @param int $stackPtr Current token pointer.
991996
*
992997
* @return int Stack pointer to the end of the FQCN.
@@ -1010,7 +1015,10 @@ private function get_fully_qualified_name_ptr( $stackPtr ) {
10101015
/**
10111016
* Check if the current token pointer is a double colon.
10121017
*
1018+
* @since 3.1.0 Add the method that checks is the token is a double colon one.
1019+
*
10131020
* @param int $stackPtr Current token pointer.
1021+
*
10141022
* @return bool True if it is, false if not.
10151023
*/
10161024
private function does_double_colon_exists( $stackPtr ) {

0 commit comments

Comments
 (0)