Re: [PHP-DEV] Apply strict_types to internal functions

2023-08-29 Thread
> // strict with internal func > declare(strict_types=1); > declare(strict_types='strict_with_internal_func'); > declare(strict_types=STRICT_TYPE_MODE_WITH_INTERNAL_FUNC); I made a mistake. Here is exactly: ``` // strict with internal func declare(strict_types=2);

Re: [PHP-DEV] Apply strict_types to internal functions

2023-08-29 Thread
I also skimmed over past discussions. I've found that having full control over `strict_types` globally is not a good idea. This is because it can break the behavior of many libraries, and developers don't always respond appropriately to this fix. So I came up with the following idea. Allows a