From 26dc92f77e5f04e8cb91a902fd331ea117103818 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Thu, 14 Nov 2024 14:57:21 +0545 Subject: [PATCH] Fix CS issue in LocalhostSniff --- phpcs-sniffs/PluginCheck/Sniffs/CodeAnalysis/LocalhostSniff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpcs-sniffs/PluginCheck/Sniffs/CodeAnalysis/LocalhostSniff.php b/phpcs-sniffs/PluginCheck/Sniffs/CodeAnalysis/LocalhostSniff.php index fb28251f9..63d54d11f 100644 --- a/phpcs-sniffs/PluginCheck/Sniffs/CodeAnalysis/LocalhostSniff.php +++ b/phpcs-sniffs/PluginCheck/Sniffs/CodeAnalysis/LocalhostSniff.php @@ -55,7 +55,7 @@ public function process_token( $stackPtr ) { 'Do not use Localhost/127.0.0.1 in your code. Found: %s', $this->find_token_in_multiline_string( $stackPtr, $content, $match[1] ), 'Found', - [ $match[0] ] + array( $match[0] ) ); } }