Re: Apply strict_types to internal functions
| From: | Saki Takamachi | Date: | Wed, 30 Aug 2023 03:11:23 +0000 |
| Subject: | Re: Apply strict_types to internal functions | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120952@lists.php.net to get a copy of this message | ||
> That might not be intuitive to you, but it follows directly from the specified semantics:
> whether a function is called in
strict_types mode or not, depends
> only on where the function is called. I personally doubt that there is an easy way to adjust the
> rule in order to make it both “intuitive” and simple.
On second thought based on your point, it seems confusing to change the behavior of strict_types
only for calls from internal functions.
A minor problem is that there is no way to control strict_types for calls from internal functions.
Saki