Re: Re: PHP Annotations RFC + Patch
| From: | Stas Malyshev | Date: | Mon, 13 Sep 2010 17:08:38 +0000 |
| Subject: | Re: Re: PHP Annotations RFC + Patch | ||
| 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-49631@lists.php.net to get a copy of this message | ||
Hi!
[ExpectedException("InvalidArgumentException")] [ExpectedException("InvalidArgumentException", "Expected message", 40")] [Validation(array("type" => "EMail", "options" => array("checkMX" => true))]This doesn't look like PHP code. In PHP code, nether [] by itself, nor [ClassName('string')] mean anything. It's new sytnax.
new ExpectedException("InvlaidArgumentException") new Validation(array("type" => "EMail", "options" => array("checkMX" => true))This one is not very clear either - when is this "new" executed? What it is being assigned to? What you can and can't use there? It's all new concepts - which I'm not sure worth introducing. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227