Doc #74024 [NEW]: Nullable types aren't documented, except in the migration guide
From: mat at zerifas dot com
Operating system: N/A
PHP version: 7.1.1
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Nullable types aren't documented, except in the migration guide
Description:
------------
First I looked here php.net/manual/en/language.oop5.typehinting.php
which links to here
php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration
The only mention of nullable is using the old syntax:
php.net/manual/en/functions.arguments.php#example-140
There's nothing on the return types page either:
php.net/manual/en/functions.returning-values.php
Finally, I looked at the Types page, but nothing there either
php.net/manual/en/language.types.php
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:
php.net/manual/en/migration71.new-features.php
--
Edit bug report at https://bugs.php.net/bug.php?id=74024&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74024&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74024&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74024&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74024&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74024&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74024&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74024&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74024&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74024&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74024&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74024&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74024&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74024&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74024&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74024&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74024&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74024&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74024&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74024&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74024&r=mysqlcfg
Thread (6 messages)
- mat at zerifas dot com
- requinix@php.netDoc #74024 [Opn->Ver]: Nullable types aren't documented, except in the migration guide
- requinix@php.netDoc #74024 [Ver]: Nullable types aren't documented, except in the migration guide
- mat at zerifas dot comDoc #74024 [Com]: Nullable types aren't documented, except in the migration guide
- requinix@php.netDoc #74024 [Ver]: Nullable types aren't documented, except in the migration guide
- cmb@php.netDoc #74024 [Ver->Csd]: Nullable types aren't documented, except in the migration guide