Re: Re: Voting choice for language changes (Was: "Re: [PHP-DEV][RFC][DISCUSSION] Strict Argument Count")

From: Date: Sun, 26 Jul 2015 09:29:16 +0000
Subject: Re: Re: Voting choice for language changes (Was: "Re: [PHP-DEV][RFC][DISCUSSION] Strict Argument Count")
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  Groups: php.internals 
Request: Send a blank email to internals+get-87298@lists.php.net to get a copy of this message
> > Then why not put the base class in the namespace of which it is a base class for? > Locations source PHP file is the same as in namespace. App/RestException.php App/RestException/NotFound.php App/RestException/BadRequest.php I did refactoring code, without group use: <?php use App\RestException; try { ... } catch (RestException\BadRequest $e) { ... } catch (RestException\NotFound $e) { ... } catch (RestException $e) { ... }

« previous php.internals (#87298) next »