From bf9d509b148e5b7b6988cb5ca8fd2d2f82b6636f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 15 Apr 2014 07:53:12 +0200 Subject: [PATCH] added a note about types we support --- contributing/code/standards.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contributing/code/standards.rst b/contributing/code/standards.rst index aadcb34ef90..9f2f35b3f11 100644 --- a/contributing/code/standards.rst +++ b/contributing/code/standards.rst @@ -130,6 +130,10 @@ Naming Conventions * Use alphanumeric characters and underscores for file names; +* For type-hinting in PHPDocs and casting, use ``bool`` (instead of ``boolean`` + or ``Boolean``), ``int`` (instead of ``integer``), ``float`` (instead of + ``double`` or ``real``); + * Don't forget to look at the more verbose :doc:`conventions` document for more subjective naming considerations.