[php-src] Issue #14465: Private classes

From: Date: Tue, 04 Jun 2024 10:03:45 +0000
Subject: [php-src] Issue #14465: Private classes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247027@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/14465 Author: neokofg ### Description # Feature Request Please, i need private classes, for my CLM (Compact Layer Modules) architecture, ### Example for example: i want to make exception, that inside a file with class ```php class InvalidCodeException extends Exception {} class ValidateController { // some code throw new InvalidCodeException('Invalid code', 403, $exception); } ``` So it would be great if this exception will be private like: ```php private class InvalidCodeException extends Exception {} class ValidateController { // some code throw new $this->InvalidCodeException('Invalid code', 403, $exception); //idk something like this } ```

« previous php.bugs (#247027) next »