improved wording (suggested by anon user)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338912 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2016-04-04 16:36:51 +00:00
parent cdab70215c
commit dcafd6ef3d

View file

@ -366,7 +366,7 @@ Making a bowl of acidophilus raspberry.
</note>
<para>
Type declarations allow functions to specify parameters as certain types.
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,
then an error is generated: in PHP 5, this will be a recoverable fatal
error, while PHP 7 will throw a <classname>TypeError</classname>