[php-src] PR #20421: RFC: Namespace-Scoped Visibility for Methods and Properties
| From: | withinboredom | Date: | Fri, 07 Nov 2025 23:52:29 +0000 |
| Subject: | [php-src] PR #20421: RFC: Namespace-Scoped Visibility for Methods and Properties | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-33968@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20421
Author: withinboredom
This PR implements
private(namespace) and private(namespace)(set)
visibility for methods and properties, allowing classes within the same namespace to access each
other’s internal APIs without exposing them to the entire codebase.
RFC: https://wiki.php.net/rfc/namespace_visibility