From 20f201c32ce940b21678860ebe00aad67c0cac96 Mon Sep 17 00:00:00 2001 From: Thomas Punt Date: Sat, 19 Dec 2015 20:00:23 +0000 Subject: [PATCH] Resolve doc bug #71167 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338328 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/functions.xml | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/language/functions.xml b/language/functions.xml index 2d4fb6c9f4..8f39f34cc0 100644 --- a/language/functions.xml +++ b/language/functions.xml @@ -366,8 +366,8 @@ Making a bowl of acidophilus raspberry. - Type declarations allow functions to require that parameters are of a - certain type at call time. If the given value is of the incorrect type, + Type declarations allow functions to specify parameters as certain types. + If the given value is of the incorrect type, then an error is generated: in PHP 5, this will be a recoverable fatal error, while PHP 7 will throw a TypeError exception. @@ -453,6 +453,35 @@ Making a bowl of acidophilus raspberry. + + + + Aliases for the above scalar types are not supported. Instead, they are + treated as class or interface names. For example, using + boolean as a parameter or return type will require + an argument or return value that is an &instanceof; the class or + interface boolean, rather than of type + bool: + + + + + + ]]> + + &example.outputs; + + + + + +