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

Read the controllers.json as string rather than Buffer #1329

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

stof
Copy link
Member

@stof stof commented Sep 5, 2024

Buffers can implicitly be converted to string (implicitly using utf8 as encoding) but the type checker does not like this kind of implicit conversion.
When passing an encoding to fs.readFileSync, it returns a string by performing an explicit conversion using the provided encoding.

Buffers can implicitly be converted to string (implicitly using `utf8`
as encoding) but the type checker does not like this kind of implicit
conversion.
When passing an encoding to `fs.readFileSync`, it returns a string by
performing an explicit conversion using the provided encoding.
@stof stof requested a review from Kocal September 5, 2024 10:16
@stof stof merged commit 5f7df38 into symfony:main Sep 6, 2024
28 checks passed
@stof stof deleted the read_as_string branch September 6, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants