|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #74024 Nullable types aren't documented, except in the migration guide
Submitted: 2017-01-31 15:55 UTC Modified: 2017-10-07 13:54 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: mat at zerifas dot com Assigned:
Status: Verified Package: Scripting Engine problem
PHP Version: 7.1.1 OS: N/A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
2 + 15 = ?
Subscribe to this entry?

 [2017-01-31 15:55 UTC] mat at zerifas dot com
First I looked here which links to here

The only mention of nullable is using the old syntax:

There's nothing on the return types page either:

Finally, I looked at the Types page, but nothing there either

I eventually found what I was looking for in the new features part of the migration guide, but feel it should be in the main docs too:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-05 10:23 UTC]
-Status: Open +Status: Verified -Package: Documentation problem +Package: Scripting Engine problem
 [2017-10-05 10:23 UTC]
This is particularly important for the arguments page as a nullable type is the only way to get a null value into a typed variadic list - see doc bug #74024.
 [2017-10-05 10:24 UTC]
*bug #75312
 [2017-10-07 12:56 UTC] mat at zerifas dot com
-Package: Documentation problem
+Package: Scripting Engine problem

This seems an odd choice – what's the reasoning?
 [2017-10-07 13:54 UTC]
It's more helpful than saying it's a documentation problem in the documentation package.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Oct 30 07:01:24 2020 UTC