**Symfony version(s) affected**: 5.2 **Description** If you parse valid yaml with a space after a quote you will receive the error: ``` Unexpected characters near " space after the quote" " at line 1 (near "test: "anything with a space after the quote" "). ``` **How to reproduce** <!-- Code and/or config needed to reproduce the problem. If it's a complex bug, create a "bug reproducer" as explained in: https://symfony.com/doc/current/contributing/code/reproducer.html --> Parse any valid yaml that uses quotes for a value and has a space at the end. Example: ``` \Symfony\Component\Yaml\Yaml::parse("test: 'a one line quote test' "); ``` **Possible Solution** <!--- Optional: only if you have suggestions on a fix/reason for the bug --> **Additional context** <!-- Optional: any other context about the problem: log messages, screenshots, etc. -->