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

[AssetMapper] Throw exception in Javascript compiler when PCRE error #54113

Merged
merged 1 commit into from Mar 4, 2024

Conversation

smnandre
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #...
License MIT

preg_match_callback can return null when a PCRE error occured, leading there to a TypeError.

Let's throw an exception and expose the error message.

(follows #54078 / complementary to #54079 )

@smnandre
Copy link
Contributor Author

smnandre commented Mar 2, 2024

(AppVeyor failures unrelated)

@fabpot fabpot force-pushed the feat/throw-exception-on-preg-error branch from 0165854 to 2333b58 Compare March 4, 2024 12:44
@fabpot
Copy link
Member

fabpot commented Mar 4, 2024

Thank you @smnandre.

@fabpot fabpot merged commit 5f78910 into symfony:6.4 Mar 4, 2024
7 of 8 checks passed
This was referenced Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants