Re: [PHP-DEV] Re: DateTimeImmutable::modify() return type: doc or language bug?

2023-01-03 Thread Alexandru Pătrănescu
On Tue, Jan 3, 2023, 17:44 Christoph M. Becker wrote: > On 03.01.2023 at 10:48, Philip Hofstetter wrote: > > > `DateTimeImmutable::modify()` is documented as returning > > `DateTimeImmutable`, but it seems to actually be more specifically > > returning `static`: > > > > https://3v4l.org/j9ZSo > >

[PHP-DEV] Re: DateTimeImmutable::modify() return type: doc or language bug?

2023-01-03 Thread Christoph M. Becker
On 03.01.2023 at 10:48, Philip Hofstetter wrote: > `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 >

Re: [PHP-DEV] DateTimeImmutable::modify() return type: doc or language bug?

2023-01-03 Thread Larry Garfield
On Tue, Jan 3, 2023, at 3:48 AM, Philip Hofstetter wrote: > 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 is

[PHP-DEV] DateTimeImmutable::modify() return type: doc or language bug?

2023-01-03 Thread Philip Hofstetter
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 ac