|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2015-07-04 00:52 UTC] requinix@php.net
-Status: Open
+Status: Verified
[2015-07-04 00:52 UTC] requinix@php.net
[2015-07-04 05:50 UTC] dievartg at gmail dot com
[2015-07-04 10:26 UTC] kalle@php.net
[2015-07-04 13:15 UTC] cmb@php.net
[2015-07-09 06:22 UTC] trowski@php.net
[2017-09-12 10:56 UTC] cmb@php.net
-Status: Verified
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2017-09-12 10:56 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
Description: ------------ Hello, a fatal error (no catchable) is thrown when I attempt to call the mehod getReturnType from a class inheriting of ReflectionFunctionAbstract Do you think it's a normal behavior ? Test script: --------------- <?php class MockReflectionMethod extends ReflectionFunctionAbstract { public static function export() {} public function __toString() {} } try { (new MockReflectionMethod)->isStatic(); } catch(Throwable $e) { echo $e->getMessage(); } try { (new MockReflectionMethod)->getReturnType(); } catch(Throwable $e) { echo $e->getMessage(); } // output: // Call to undefined method MockReflectionMethod::isStatic() // Fatal error: ReflectionFunctionAbstract::getReturnType(): Internal error: Failed to retrieve the reflection object Actual result: -------------- http://3v4l.org/7LjRK