Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error : Typed property League\CommonMark\Parser\InlineParserEngine::$parsers must not be accessed before initialization #908

Closed
lezhnev74 opened this issue Jul 28, 2022 · 3 comments · Fixed by #909
Assignees
Labels
bug Something isn't working right fixed Fix has been implemented

Comments

@lezhnev74
Copy link

lezhnev74 commented Jul 28, 2022

Version(s) affected

2.3.4 (under php 8.1.8)

Description

Unexpected error when parsing ```\n```

How to reproduce

$env = new Environment();
$p = new MarkdownParser($env);
$p->parse('```\n```');

Possible solution

No response

Additional context

No response

Did this project help you today? Did it make you happy in any way?

No response

@lezhnev74
Copy link
Author

Should I provide a failing test and a patch to fix this?

@colinodell
Copy link
Member

Thanks for the report! This looks easy enough to fix - I'll prepare and release the patch shortly :)

@colinodell colinodell self-assigned this Jul 29, 2022
@colinodell colinodell added the bug Something isn't working right label Jul 29, 2022
@close-label close-label bot added the fixed Fix has been implemented label Jul 29, 2022
@colinodell
Copy link
Member

Fixed in 2.3.5!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right fixed Fix has been implemented
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants