Re: [RFC][DISCUSSION] Deprecation of fallback to root scope
| From: | Sara Golemon | Date: | Sat, 03 Feb 2018 17:04:54 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Deprecation of fallback to root scope | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101756@lists.php.net to get a copy of this message | ||
On Sat, Feb 3, 2018 at 11:31 AM, Levi Morrison <levim@php.net> wrote:
> In my opinion we should emit E_STRICT until we know when the feature
> will be removed. At that point we can promote it to E_DEPRECATED and
> specifically cite when it will be removed. In any case, E_NOTICE does
> not seem appropriate.
>
I like the three phase approach. Gives frameworks/libraries/users
ridiculous amounts of time to clean up their code, the route to clean
code is clear and the updates are scriptable (I'll bet PHPCS can do
this already), and at the end, we'll be able to have a better engine
and make certain assumptions in the optimizer.
+1
-Sara