|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-06-11 07:24 UTC] pierre at lgse dot com
Description: ------------ ReflectionParameter::getType should return "integer" and not "int" on a constructor parameter of type "int". The types returned by ReflectionParameter::getType and the gettype() function should be the same. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 08:00:02 2025 UTC |
<?php class A { public function __construct(int $a){ $this->a = $a; } } var_dump((string)(new ReflectionClass('A'))->getConstructor()->getParameters()[0]->getType(), gettype(0));