|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-09-18 16:19 UTC] cmb@php.net
[2016-09-18 18:02 UTC] mail at ciaranmcnulty dot com
[2016-10-01 14:39 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2016-10-01 14:39 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 15 22:00:01 2025 UTC |
Description: ------------ Reflection normalises typehints on parameters with defaults of null to be Nullable typehints. This is a change of behaviour and caused issues in Prophecy (Mocking library) and probably other tools that lean on reflection. It's not appropriate for a minor version number. Test script: --------------- function foo(Bar $bar = null){} echo ((new ReflectionFunction('foo'))->getParameters()[0]->getType()); Expected result: ---------------- output 'Bar' Actual result: -------------- output '?Bar'