|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-04-14 14:37 UTC] cmb@php.net
[2020-09-17 14:32 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2020-09-17 14:32 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 23:00:01 2025 UTC |
Description: ------------ Currently the callable name can only be fetched using is_callable and a 3rd argument. However this doesnt seem appropriate when using callable type hints.. get_callable_name (just like get_resource_type) would be in place imho. Test script: --------------- <?php function foo(callable $bar) { $name = null; $name = is_callable($bar, true, $name); // vs $name = get_callable_name($bar); }