| Summary: | [CA] for phpDoc tag @return should provide all PHP types | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Silver Zachara <silver.zachara> | ||||||||||||
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> | ||||||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||||||
| Severity: | enhancement | ||||||||||||||
| Priority: | P3 | CC: | ganoro, ilina.s, silviya | ||||||||||||
| Version: | unspecified | ||||||||||||||
| Target Milestone: | --- | ||||||||||||||
| Hardware: | All | ||||||||||||||
| OS: | Windows XP | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Silver Zachara
We do return all classes. But returning a "void" or "mixed" is a nice feature. Created attachment 180629 [details]
patch
Roy, so we only need to add "void" and "mixed" for "@return"?
Here is a patch which can return "void" and "mixed"
(In reply to comment #2) > Created an attachment (id=180629) [details] > patch > > Roy, so we only need to add "void" and "mixed" for "@return"? > > Here is a patch which can return "void" and "mixed" We should also display "array" as an option thanks! What about string, int, integer, float, bool, boolean, true, false, null, and resource? (In reply to comment #4) > What about string, int, integer, float, bool, boolean, true, false, null, and > resource? Hi all, as i described in description, in CA should be all this types too: http://cz.php.net/manual/en/language.types.php and don't forget include type void as well. Created attachment 182352 [details]
patch
provides array, mixed and void for @return tag
Created attachment 182353 [details]
unit test patch
I think we should not show "void" and others when use: /** * @return MyCl| */ btw,how about string, int............ Created attachment 182450 [details]
patch
Created attachment 182451 [details]
unit test patch
As I understand what Roy said, the @return tag returns CLASS, and "array" is a special object So this patch provides "void", "mixed", "array". If really need "string", "int"..., we also can add them. (In reply to comment #11) > If really need "string", "int"..., we also can add them. Yes, in CA should be also integer, int, string, float, double, bool, boolean, object, resource, null, NULL. Thank you fixed in head:) Verified. Ilina Stefanova Closing. - Ilina |