Doc #80707 [Opn]: function parameter ?t $v not described

From: Date: Thu, 04 Feb 2021 11:16:25 +0000
Subject: Doc #80707 [Opn]: function parameter ?t $v not described
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18500@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80707&edit=1

 ID:                 80707
 Updated by:         cmb@php.net
 Reported by:        Bernhard dot Stauss at Clareon dot de
 Summary:            function parameter ?t $v not described
 Status:             Open
 Type:               Documentation Problem
 Package:            Documentation problem
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

I think we should overhaul the "How to read a function definition"
section[1].

[1] <https://www.php.net/manual/en/about.prototypes.php>


Previous Comments:
------------------------------------------------------------------------
[2021-02-03 23:44:26] tiffany@php.net

https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.nullable

------------------------------------------------------------------------
[2021-02-03 23:35:35] Bernhard dot Stauss at Clareon dot de

Description:
------------
---
From manual page: https://php.net/functions.arguments
---
The manual page says no single word about function parameters declared as

   ?<type> $<param-name>

where <type> is the data type of the parameter 
and <param-name> is the name of the parameter.

What is the meaning of such a parameter declaration?



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80707&edit=1


Thread (5 messages)

« previous php.doc.bugs (#18500) next »