Skip to content

Strings containing double quotes prevent parsing #8

Description

@ddanielou

Feeding that kind of input data to Hell2Shape::generate():

$array = [
    'testStringWithDoubleQuotes' => 'askjdashd"askjdasjkd',
];

$result = Hell2Shape::generate($array, GeneratorConfig::withoutDocComment());

… triggers this exception:

Fatal error: Uncaught Feolius\Hell2Shape\Lexer\LexerException: Unable to define token at line 7 and column 25: 
askjdasjkd"
}
... in /var/www/html/vendor/feolius/hell2shape/src/Lexer/Lexer.php:88

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions