[php-src] Issue #8351: explicit `__construct` call for \DateTimeImmutable object would break immutable
| From: | sasezaki | Date: | Thu, 14 Apr 2022 09:33:04 +0000 |
| Subject: | [php-src] Issue #8351: explicit `__construct` call for \DateTimeImmutable object would break immutable | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240951@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8351
Comment Author: sasezaki
> > internal structure of the DateTimeImmutable class is known to the user.
> That is not true.
!!!
Excuse me. It was my sentence mistakes. really sorry.
What I wanted to say is that "I think this is an encapsulation violation, since the internal
structure of the DateTimeImmutable class is **should not** known to the user." (lack of
"should not" when posting)