Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace-scoped declares #2972

Closed
wants to merge 6 commits into from
Closed

Namespace-scoped declares #2972

wants to merge 6 commits into from

Conversation

nikic
Copy link
Member

@nikic nikic commented Dec 10, 2017

RFC: https://wiki.php.net/rfc/namespace_scoped_declares

This PR adds support for the namespace_declare() function:

namespace_declare('Foo', ['strict_types' => 1]);

This will enable strict_types for the namespace Foo and all sub-namespaces.

@nikic nikic added the RFC label Dec 10, 2017
@nikic nikic mentioned this pull request Aug 1, 2019
1 task
The declares are not yet used for anything.
In order to consolidate all the (ordinary) declare state in one
place.
Opcache support is still missing
Opcache now verifies that the namespaced declares during loading
are the same as the ones during compilation, and invalidates the
script if this isn't the case.
@iluuu1994
Copy link
Member

@nikic Is it ok to close this PR and the associated RFC?

@nikic
Copy link
Member Author

nikic commented Jan 25, 2022

Yeah, don't plan any immediate work here.

@nikic nikic closed this Jan 25, 2022
@iluuu1994
Copy link
Member

@nikic Thanks! I updated the RFC as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants