diff --git a/phpcs-sniffs/PluginCheck/Sniffs/CodeAnalysis/LocalhostSniff.php b/phpcs-sniffs/PluginCheck/Sniffs/CodeAnalysis/LocalhostSniff.php index fb28251f..63d54d11 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] ) ); } }