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

The return type is wrong in spanish translation #77

Open
aliveghost04 opened this issue Mar 18, 2024 · 2 comments
Open

The return type is wrong in spanish translation #77

aliveghost04 opened this issue Mar 18, 2024 · 2 comments

Comments

@aliveghost04
Copy link

From manual page: https://php.net/datetimeimmutable.createfromformat


The english documentation indicates the return type of the DateTimeImmutable::createFromFormat or date_create_immutable_from_format should be DateTimeImmutable|false but instead indicates DateTimeImmutable which can lead to bugs when not handling the boolean possible return value.

@leonardolara
Copy link

This is because this page is translated using a reference from May 17th, 2013; many years ago. This happens with almost 1/3 of the Spanish translated pages, which are not updated for a looong time.

@aliveghost04
Copy link
Author

I just read the guia.pdf file. I could help with this issue.

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

No branches or pull requests

2 participants