Skip to content

Bug with PhpParser when instantiating the Tokenizer #490

Description

@odahcam

Reference:

https://github.com/doctrine/annotations/blame/6d4929214d8593ed80364267d6665edd70c2ecbe/lib/Doctrine/Common/Annotations/PhpParser.php#L60

This piece of code prepends a "<?php " string to the original content, but if the content already has the "<?php " opening tag, it errors and breaks the runtime.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions