Skip to content

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