Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Feb 2014 at 11:39 UTC
Updated:
29 Jul 2014 at 23:20 UTC
Jump to comment: Most recent
Comments
Comment #1
dawehnerI don't see a reason why we should not do it like PSR5 suggests, especially because it is more consistent.
Comment #2
donquixote commentedI completely support this.
Even nicer would be if we could document nested array structures beyond just array[]. But I think Php-fig and PhpDoc are not that far yet. (I personally prefer this syntax)
And ideally we should reduce the usage of these nested arrays.
Comment #3
jhodgdonI think this is fine. I also think we're already using it.
Comment #4
jhodgdonSetting up this issue as a proper coding standards change.
We should leave it at RTBC for about a week. If no one objects I'll go ahead and edit the docs standards page (node/1354) and put this in. I do not think it is controversial -- it's a clear extension of the standards we have now, and clarity is what docs are all about. Plus as I said above I think we are already using it, not sure though.
Comment #5
xanoAwesome!
Comment #6
jhodgdonPolicy is hereby adopted; https://drupal.org/coding-standards/docs#types is edited.
Comment #7
xanoThanks!