Re: [RFC] Warnings for PHP 8.5
| From: | Kamil Tekiela | Date: | Tue, 29 Jul 2025 20:32:05 +0000 |
| Subject: | Re: [RFC] Warnings for PHP 8.5 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-128311@lists.php.net to get a copy of this message | ||
> Warning: non-representable float was cast to int
Will this have a significant performance impact?
> Warning: Cannot access offset of type TYPE on string
Why is this a warning and not a TypeError? If the goal is to make the
behavior identical to null coalesce operator then having a warning seems to
stray away from it.