Skip to content

Commit 68260d2

Browse files
committed
Constants/ConstantString: improve clarity of error message
1 parent 397990f commit 68260d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressVIPMinimum/Sniffs/Constants/ConstantStringSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function process_parameters( $stackPtr, $group_name, $matched_content, $p
6464

6565
$tstring_token = $this->phpcsFile->findNext( T_STRING, $param['start'], $param['end'] + 1 );
6666

67-
$message = 'Constant name, as a string, should be used along with `%s()`.';
67+
$message = 'The `%s()` function expects to be passed the constant name as a text string.';
6868
$data = [ $this->tokens[ $stackPtr ]['content'] ];
6969
$this->phpcsFile->addError( $message, $tstring_token, 'NotCheckingConstantName', $data );
7070
}

0 commit comments

Comments
 (0)