Open aliveghost04 opened 7 months ago
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.
I just read the guia.pdf file. I could help with this issue.
From manual page: https://php.net/datetimeimmutable.createfromformat
The english documentation indicates the return type of the
DateTimeImmutable::createFromFormat
ordate_create_immutable_from_format
should beDateTimeImmutable|false
but instead indicatesDateTimeImmutable
which can lead to bugs when not handling the boolean possible return value.