Hi internals! I'd like to propose the ability of specifying declare directives like "strict_types" at the namespace level.
The broader context of this proposal is to provide a simple and usable mechanism that will allow developers to opt-in to stricter language semantics on a per-library (or more specifically, per-namespace) basis, thus alleviating backwards compatibility and library interoperability concerns for such changes. https://wiki.php.net/rfc/namespace_scoped_declares I don't know whether this is the right solution to this problem, so next to the specifics of this proposal, I'm also open to discussing alternative approaches, as long such discussions can be held at a reasonably technical level (i.e. concrete suggestions rather than vague concepts). Thanks, Nikita