Skip to content

Commit 1adfd9b

Browse files
committed
minor #3802 Add a note about which types can be used in Symfony (fabpot)
This PR was merged into the 2.3 branch. Discussion ---------- Add a note about which types can be used in Symfony | Q | A | ------------- | --- | Doc fix? | no | New docs? | no | Applies to | all | Fixed tickets | n/a see symfony/symfony#10701 Commits ------- bf9d509 added a note about types we support
2 parents 9314916 + bf9d509 commit 1adfd9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contributing/code/standards.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ Naming Conventions
133133

134134
* Use alphanumeric characters and underscores for file names;
135135

136+
* For type-hinting in PHPDocs and casting, use ``bool`` (instead of ``boolean``
137+
or ``Boolean``), ``int`` (instead of ``integer``), ``float`` (instead of
138+
``double`` or ``real``);
139+
136140
* Don't forget to look at the more verbose :doc:`conventions` document for
137141
more subjective naming considerations.
138142

0 commit comments

Comments
 (0)