|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-08-10 12:24 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2015-08-10 12:24 UTC] nikic@php.net
[2015-08-10 12:26 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 13:00:01 2025 UTC |
Description: ------------ ReflectionType::isBuiltin checks for the type not being `object`. That way *objects* that are built in, are considered *not* `Builtin()` Test script: --------------- <?php function foobar(ReflectionMethod $noType) { } $r = new ReflectionFunction('foobar'); var_dump($r->getParameters()[0]->getType()->isBuiltin()); Expected result: ---------------- bool(true) Actual result: -------------- bool(false)