Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
windaishi committed Nov 28, 2024
1 parent f07e5be commit 247569d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function process(File $phpcsFile, $stackPtr)
}

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

Expand Down

0 comments on commit 247569d

Please sign in to comment.