code: private function convertToNowdoc(Token $token)
      {
          return new Token([
              $token->getId(),
              Preg::replace('/^([Bb]?<<<)([ \t]*)"?([^\s"]+)"?/', '$1$2\'$3\'', $token->getContent()),
          ]);
      }
docs: Transforms the heredoc start token to nowdoc notation.
  
  @param Token $token
  
  @return Token