@@ -190,7 +190,7 @@ trait SanitizationHelperTrait {
190190 *
191191 * @return array<string, bool>
192192 */
193- public function get_sanitizing_functions () {
193+ final public function get_sanitizing_functions () {
194194 if ( array () === $ this ->allSanitizingFunctions
195195 || $ this ->customSanitizingFunctions !== $ this ->addedCustomSanitizingFunctions ['sanitize ' ]
196196 ) {
@@ -212,7 +212,7 @@ public function get_sanitizing_functions() {
212212 *
213213 * @return array<string, bool>
214214 */
215- public function get_sanitizing_and_unslashing_functions () {
215+ final public function get_sanitizing_and_unslashing_functions () {
216216 if ( array () === $ this ->allUnslashingSanitizingFunctions
217217 || $ this ->customUnslashingSanitizingFunctions !== $ this ->addedCustomSanitizingFunctions ['unslashsanitize ' ]
218218 ) {
@@ -236,7 +236,7 @@ public function get_sanitizing_and_unslashing_functions() {
236236 *
237237 * @return bool
238238 */
239- public function is_sanitizing_function ( $ functionName ) {
239+ final public function is_sanitizing_function ( $ functionName ) {
240240 return isset ( $ this ->get_sanitizing_functions ()[ strtolower ( $ functionName ) ] );
241241 }
242242
@@ -249,7 +249,7 @@ public function is_sanitizing_function( $functionName ) {
249249 *
250250 * @return bool
251251 */
252- public function is_sanitizing_and_unslashing_function ( $ functionName ) {
252+ final public function is_sanitizing_and_unslashing_function ( $ functionName ) {
253253 return isset ( $ this ->get_sanitizing_and_unslashing_functions ()[ strtolower ( $ functionName ) ] );
254254 }
255255
@@ -266,7 +266,7 @@ public function is_sanitizing_and_unslashing_function( $functionName ) {
266266 *
267267 * @return bool Whether the token is only within a sanitization.
268268 */
269- public function is_only_sanitized ( File $ phpcsFile , $ stackPtr ) {
269+ final public function is_only_sanitized ( File $ phpcsFile , $ stackPtr ) {
270270 $ tokens = $ phpcsFile ->getTokens ();
271271
272272 // If it isn't being sanitized at all.
@@ -317,7 +317,7 @@ public function is_only_sanitized( File $phpcsFile, $stackPtr ) {
317317 *
318318 * @return bool Whether the token is being sanitized.
319319 */
320- public function is_sanitized ( File $ phpcsFile , $ stackPtr , $ unslash_callback = null ) {
320+ final public function is_sanitized ( File $ phpcsFile , $ stackPtr , $ unslash_callback = null ) {
321321 $ tokens = $ phpcsFile ->getTokens ();
322322 $ require_unslash = is_callable ( $ unslash_callback );
323323
0 commit comments