Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tokenizer fails on protobuf metadata files #18

@roxblnfk

Description

@roxblnfk

Hi.
I'm encountering a tokenizer error when there are protobuf generated files in the project.

image

These lines:

$values = \preg_split('/\R+/Uu', $tok[1]);
foreach ($values as $v) {

I var-dumped the $tok variable when $values === false and got this:

image

Looks like a Protobuf generated metadata e.g. this: https://github.com/buggregator/trap/blob/master/src/Test/Proto/Metadata/Message.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions