summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorLevi Morrison <levim@php.net>2016-08-23 09:42:04 -0600
committerLevi Morrison <levim@php.net>2016-08-23 09:43:31 -0600
commitf4e68a3968429757719c600ce16913ab09539f0d (patch)
treedb2d68458a6c0e4cad8dff6879f0a0d8a8acc680 /UPGRADING
parent129e8dadf447df7d98a08447bc8c950b7c9209ec (diff)
downloadphp-git-f4e68a3968429757719c600ce16913ab09539f0d.tar.gz
Revert "Do not prepend ? on nullables in ReflectionType::__toString()"
This reverts commit 8855a2ce76e8bfba1d2eea1345c765fde7a9a441.
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING6
1 files changed, 3 insertions, 3 deletions
diff --git a/UPGRADING b/UPGRADING
index 71cc312966..410a0f2573 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -124,6 +124,9 @@ PHP 7.1 UPGRADE NOTES
. The behavior of ReflectionMethod::invoke() and ::invokeArgs() has been
aligned, what causes slightly different behavior than before for some
pathological cases.
+ . ReflectionType::__toString() will now return the type name with a leading
+ "?" if it is nullable. To retrieve the type name without leading "?" the new
+ ReflectionNamedType::getName() method can be used.
========================================
2. New Features
@@ -305,9 +308,6 @@ PHP 7.1 UPGRADE NOTES
- Reflection:
. Failure to retrieve a reflection object or retrieve an object property
will now throw an instance of Error instead of resulting in a fatal error.
- . ReflectionNamedType will be returned from ReflectionParameter::getType()
- and ReflectionFunctionAbstract::getReturnType(). This class includes a
- getName() method that returns the type name as a string.
- Session:
. Custom session handlers that do not return strings for session IDs will