note 129616 added to class.reflectiontype

From: Date: Fri, 28 Jun 2024 11:11:57 +0000
Subject: note 129616 added to class.reflectiontype
Groups: php.notes 
Request: Send a blank email to php-notes+get-221395@lists.php.net to get a copy of this message
Note that a nullable type (e.g. '?int') is a ReflectionNamedType, not a ReflectionUnionType. And while ReflectionNamedType->getName() returns a specific type, e.g. 'int' without a '?' prefix, ReflectionNamedType->__toString() actually returns the whole '?int'. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 134.249.57.173) ---- Manual Page -- https://php.net/manual/en/class.reflectiontype.php Edit -- https://main.php.net/note/edit/129616 Del: integrated -- https://main.php.net/note/delete/129616/integrated Del: useless -- https://main.php.net/note/delete/129616/useless Del: bad code -- https://main.php.net/note/delete/129616/bad+code Del: spam -- https://main.php.net/note/delete/129616/spam Del: non-english -- https://main.php.net/note/delete/129616/non-english Del: in docs -- https://main.php.net/note/delete/129616/in+docs Del: other reasons-- https://main.php.net/note/delete/129616 Reject -- https://main.php.net/note/reject/129616 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221395) next »