note 125396 added to class.reflectiontype
| From: | OndejMirtes@php.net | Date: | Sun, 27 Sep 2020 06:53:44 +0000 |
| Subject: | note 125396 added to class.reflectiontype | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-215474@lists.php.net to get a copy of this message | ||
Method ReflectionType::getName() does not exist. This may have been virtually true in the past but
not anymore. It exists on ReflectionNamedType which used to be the only child class of
ReflectionType. So you could have kind of relied on that.
But in PHP 8 there's also ReflectionUnionType which doesn't have the getName() method. So
in order to support PHP 8, you need to support both ReflectionNamedType and ReflectionUnionType.
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.172 (proxied: 185.112.167.27)
----
Manual Page -- http://php.net/manual/en/class.reflectiontype.php
Edit -- https://master.php.net/note/edit/125396
Del: integrated -- https://master.php.net/note/delete/125396/integrated
Del: useless -- https://master.php.net/note/delete/125396/useless
Del: bad code -- https://master.php.net/note/delete/125396/bad+code
Del: spam -- https://master.php.net/note/delete/125396/spam
Del: non-english -- https://master.php.net/note/delete/125396/non-english
Del: in docs -- https://master.php.net/note/delete/125396/in+docs
Del: other reasons-- https://master.php.net/note/delete/125396
Reject -- https://master.php.net/note/reject/125396
Search -- https://master.php.net/manage/user-notes.php