Hi,

`DateTimeImmutable::modify()` is documented as returning
`DateTimeImmutable`, but it seems to actually be more specifically
returning `static`:

https://3v4l.org/j9ZSo

Now I'm wondering whether this is a documentation issue (where it
should return `static|false` and has not been updated to account for
that return type's availability yet) or whether this is a language
issue and the method is supposed to be returning `DateTimeImmutable`
instead, though that's probably a considerable BC break.

If you agree that it's a doc bug, I'll submit a PR.

Regards,

Philip

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to