note 124647 deleted from control-structures.declare by cmb
| From: | cmb@php.net | Date: | Sat, 25 Jan 2020 10:07:12 +0000 |
| Subject: | note 124647 deleted from control-structures.declare by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213955@lists.php.net to get a copy of this message | ||
Note Submitter: RevolveR.team
----
Hi.
Today I found block mode of declare won't work with brackets on 7.3.14.
I use declare in my index.php where another libraries and kernel encapsulated by require_once
instruction. Also strict types used for any arguments and returns in classes and functions.
All works fine without an any error and warnings but I just want to apply declare for Kernel of my
framework where primary futures initializes and configures.
Have you any ideas and recommendations how to make declare work for all includes with any deep and
sometimes may be disabled.
declare(ticks = 0, strict_types = 1) {
/* strict off for third party extensions because most of developers is a shit coders */
declare(strict_types = 0) {
}
For now I have only one declare that makes all framework works under strict because internal
architecture allows only index.php for any routing queries by URI explode but need disable strict
types for third party modules(another way most of developers have to catch some shit into the life
... I don't want to kill them all).