Skip to content

Commit

Permalink
Merge pull request #1697 from PHPCompatibility/feature/1696-newflexib…
Browse files Browse the repository at this point in the history
…leheredocnowdoc-fix-errorcode

NewFlexibleHeredocNowdoc: fix incorrect error code
  • Loading branch information
wimg committed Apr 2, 2024
2 parents cc959ab + 48ca2d4 commit 88e77df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ protected function detectClosingMarkerInBody(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();
$error = 'The body of a heredoc/nowdoc can not contain the heredoc/nowdoc closing marker as text at the start of a line since PHP 7.3.';
$errorCode = 'ClosingMarkerNoNewLine';
$errorCode = 'CloserFoundInBody';

if (\PHP_VERSION_ID >= 70300) {
$nextNonWhitespace = $phpcsFile->findNext(\T_WHITESPACE, ($stackPtr + 1), null, true, null, true);
Expand Down

0 comments on commit 88e77df

Please sign in to comment.