Skip to content

Commit 247569d

Browse files
committed
WIP
1 parent f07e5be commit 247569d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/php-codesniffer-standard/VIISON/Sniffs/Strings/DateMethodsInSqlSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function process(File $phpcsFile, $stackPtr)
3939
}
4040

4141
if (mb_stripos($content, 'CURRENT_TIMESTAMP(') !== false) {
42-
$error = 'The usage of the method CURRENT_TIMESTAMP() in SQL queries is not allowed. Use UTC_TIMESTAMP() instead.';
42+
$error = 'The usage of the method CURRENT_TIMESTAMP() in SQL queries is not allowed. Use (UTC_TIMESTAMP()) (with brackets) instead.';
4343
$phpcsFile->addError($error, $stackPtr, 'NoCurrentTimestamp');
4444
}
4545

0 commit comments

Comments
 (0)